From 6110d8de1652e40b8a59e9507a77ae411e81ea50 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Fri, 18 Apr 2025 18:23:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BF=E5=AE=A2=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 6 ++++-- src/pages.json | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index e888691..1fa5a4c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -151,10 +151,12 @@ export default { async onLaunch() { uni.setNavigationBarTitle({ title: "" }) - // 检查是否已登录 + // 检查登录状态 const token = uni.getStorageSync("token") if (!token) { - uni.navigateTo({ url: "/pages/user/login" }) + uni.navigateTo({ + url: '/pages/test/login' + }) return } diff --git a/src/pages.json b/src/pages.json index df12b47..b503584 100644 --- a/src/pages.json +++ b/src/pages.json @@ -70,6 +70,12 @@ "style": { "navigationStyle": "custom" } + }, + { + "path": "pages/user/login", + "style": { + "navigationBarTitleText": "登录" + } } ], "subPackages": [