From d1bb68d9f9054bbf87cd84956d3240c71d8e370c Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期二, 25 六月 2024 16:55:44 +0800
Subject: [PATCH] update 商品管理和花农的
---
App.vue | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/App.vue b/App.vue
index d279b31..bd62744 100644
--- a/App.vue
+++ b/App.vue
@@ -49,6 +49,21 @@
}
// #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/farmer-home'
+ // })
+ }
+ }, 200);
+ } else {
+
+ }
+ // #endif
},
onReady() {
@@ -66,8 +81,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';
--
Gitblit v1.9.3