访客页面

This commit is contained in:
zjf committed 2025-04-18 18:23:46 +08:00
1 parent e640856538
commit 6110d8de16
2 files changed
+10 -2

No files matched your search

+4 -2
View File
@@ -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
}
+6
View File
@@ -70,6 +70,12 @@
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/user/login",
"style": {
"navigationBarTitleText": "登录"
}
}
],
"subPackages": [