xuxueyang
2024-07-08 d3b3262835502c091d88883145cb9606a6e1af7f
App.vue
@@ -40,9 +40,25 @@
               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/farmer-home'
                     url: '/pages/home/supplier-home'
                  })
               }
            }, 200);
         } else {
         }
         // #endif
         // #ifdef H5
         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'
                  // })
               }
            }, 200);
         } else {
@@ -66,8 +82,14 @@
</script>
<style lang="scss">
   /*每个页面公共css */
   @import '@/uni_modules/uni-scss/index.scss';
   /* uni.scss */
   // @import "@/uni_modules/uview-plus/index.scss";
   @import "uview-ui/index.scss";
   /* #ifndef APP-NVUE */
   @import '@/static/customicons.css';