From 353b734a16dd753bef78105364f5a7ecbeac9712 Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期四, 27 六月 2024 11:41:56 +0800
Subject: [PATCH] 2
---
App.vue | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/App.vue b/App.vue
index e9c7d94..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';
@@ -78,6 +99,7 @@
@import '@/common/self.scss';
@import '@/common/icons.scss';
+ @import '@/common/global.scss';
/* #endif */
.example-info {
--
Gitblit v1.9.3