From fa74612c99459a8b4e94121d2d3bfcc42915208b Mon Sep 17 00:00:00 2001 From: tj <1378534974@qq.com> Date: 星期二, 27 五月 2025 16:08:20 +0800 Subject: [PATCH] loading,wechatLogin --- App.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/App.vue b/App.vue index fa4780f..c6ce853 100644 --- a/App.vue +++ b/App.vue @@ -1,7 +1,12 @@ <script setup lang="ts"> import { onLaunch, onShow, onHide } from '@dcloudio/uni-app' - +import { useUserStore } from '@/store/user' +const userStore = useUserStore() onLaunch(async (options: any) => { + + // 初始化用户状态 + userStore.initLoginState() + const query = options.q ? decodeURIComponent(options.q) : '' const querydto: Record<string, string> = {} @@ -37,7 +42,6 @@ uni.getSystemSetting({ success: (e: any) => { - debugger; try { const custom = uni.getMenuButtonBoundingClientRect() uni.setStorageSync('StatusBar', e.statusBarHeight) -- Gitblit v1.9.3