From 500078714411487af00161e01bd7e0b5efdc3414 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 07 八月 2025 13:32:32 +0800
Subject: [PATCH] add:热门景点
---
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