pages/tabbar-page/myPage-tabbar/myPage-tabbar.vue
@@ -27,6 +27,21 @@ onLoad() { this.init(); }, onShow() { uni.$on('needRefresh', () => { this.init(); }) }, onHide() { uni.$off('needRefresh', () => { }) }, onUnload() { uni.$off('needRefresh', () => { }) }, data() { return {}; }, @@ -42,6 +57,12 @@ uni.stopPullDownRefresh() }) } if (this.roleType === 1) { this.$nextTick(() => { this.$refs.customerMyPageRef.init(); uni.stopPullDownRefresh() }) } }, methods: { init() {