yangan
2024-04-25 66dcc0a49022cf23198f399f274abee89d876991
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() {