访客页面
This commit is contained in:
1 parent
e640856538
commit
6110d8de16
2 files changed
+10
-2
No files matched your search
+4
-2
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +70,12 @@
|
||||
"style": {
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/user/login",
|
||||
"style": {
|
||||
"navigationBarTitleText": "登录"
|
||||
}
|
||||
}
|
||||
],
|
||||
"subPackages": [
|
||||
|
||||
Reference in new issue
Block a user