From 91be10dcd43367aae04df6330e33d229c216a72e Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期三, 09 十月 2024 17:20:59 +0800
Subject: [PATCH] -
---
src/App.vue | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index ec67b89..ba61636 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -14,7 +14,10 @@
// url: '/pages/index/index'
// });
// }
- this.$store.dispatch('getUserInfo')
+ let token = this.$db.get('userToken')
+ if (token) {
+ this.$store.dispatch('getUserInfo')
+ }
console.log('App Launch')
},
@@ -30,6 +33,14 @@
</script>
<style lang="scss">
+ // page{
+ // height: 100vh
+ // }
+ // .page {
+ // display: flex;
+ // flex-direction: column;
+ // overflow-x: hidden;
+ // }
/*姣忎釜椤甸潰鍏叡css */
// @import "uview-plus/index.scss";
@import "@/uni_modules/uview-plus/index.scss";
--
Gitblit v1.9.1