1
xuxueyang
2024-07-12 74ff2cd15d65511c26b6a1a2e58e6153deb1e938
App.vue
@@ -41,13 +41,14 @@
         if (true && storage.getItem('token')) {
            setTimeout(async () => {
               const res = await this.$store.dispatch('getCurrentInfo');
               // console.log('init info',res,this.currentInfo)
               if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) {
                  uni.reLaunch({
                     url: '/pages/home/supplier-home'
                  })
               }
               // console.log('init info',res,this.currentInfo)
               // #ifdef PUB_CUSTOMER
               if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) {
                  uni.reLaunch({
                     url: '/pages/home/supplier-home'
                  })
               }
               // #endif
            }, 200);
         } else {