update [router]: 添加路由拦截参数from ,to.meta,使用to.meta实现登录拦截

This commit is contained in:
刘辉
2025-09-22 18:08:46 +08:00
parent d6c8fc16e6
commit dfad4ff040
4 changed files with 61 additions and 22 deletions

View File

@@ -27,30 +27,45 @@
"path": "index",
"style": {
"navigationBarTitleText": "设置"
},
"meta":{
"isAuth": true
}
},
{
"path": "general",
"style": {
"navigationBarTitleText": "通用设置"
},
"meta":{
"isAuth": true
}
},
{
"path": "notice",
"style": {
"navigationBarTitleText": "通知设置"
},
"meta":{
"isAuth": true
}
},
{
"path": "about",
"style": {
"navigationBarTitleText": ""
},
"meta":{
"isAuth": true
}
},
{
"path": "cs",
"style": {
"navigationBarTitleText": "联系客服"
},
"meta":{
"isAuth": true
}
}
]
@@ -62,18 +77,27 @@
"path": "edit",
"style": {
"navigationBarTitleText": "编辑资料"
},
"meta":{
"isAuth": true
}
},
{
"path": "edit-name",
"style": {
"navigationStyle": "custom"
},
"meta":{
"isAuth": true
}
},
{
"path": "edit-description",
"style": {
"navigationStyle": "custom"
},
"meta":{
"isAuth": true
}
},
{