fix: 启动页提为 tabBar 首页并修复失效的 switchTab;补写 README
- pages.json 启动页改为文章列表页(原启动页 pages/index/index 不在 tabBar,启动无底部导航,且其闪屏图签名已于 2025-03 过期显示裂图) - 修复 editCms/editSetting/zetank-backBar 3 处 switchTab 指向非 tabBar 页面导致跳转失效的问题 - README.md 重写(原文件 UTF-16 编码仅 # t):补功能、技术栈、目录、运行说明与密钥安全提示
This commit is contained in:
+8
-8
@@ -3,6 +3,14 @@
|
||||
"^u-(.*)" : "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
|
||||
},
|
||||
"pages" : [
|
||||
{
|
||||
"path" : "uni_modules/uni-cms-article/pages/list/list",
|
||||
"style" : {
|
||||
"backgroundColor" : "#FFFFFF",
|
||||
"disableScroll" : true,
|
||||
"navigationStyle" : "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "pages/index/index",
|
||||
"style" : {
|
||||
@@ -15,14 +23,6 @@
|
||||
"navigationBarTitleText" : "个人中心"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "uni_modules/uni-cms-article/pages/list/list",
|
||||
"style" : {
|
||||
"backgroundColor" : "#FFFFFF",
|
||||
"disableScroll" : true,
|
||||
"navigationStyle" : "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path" : "uni_modules/uni-cms-article/pages/list/slist",
|
||||
"style" : {
|
||||
|
||||
@@ -383,7 +383,7 @@
|
||||
try {
|
||||
uni.navigateBack({ delta: 1 })
|
||||
} catch (e) {
|
||||
uni.switchTab({ url: "/pages/index/index" })
|
||||
uni.switchTab({ url: "/uni_modules/uni-cms-article/pages/list/list" })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -305,7 +305,7 @@
|
||||
try {
|
||||
uni.navigateBack({ delta: 1 })
|
||||
} catch (e) {
|
||||
uni.switchTab({ url: "/pages/index/index" })
|
||||
uni.switchTab({ url: "/uni_modules/uni-cms-article/pages/list/list" })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ export default {
|
||||
if(pages.length==1){
|
||||
console.log("只有一页");
|
||||
uni.switchTab({
|
||||
url:"/pages/index/index"
|
||||
url:"/uni_modules/uni-cms-article/pages/list/list"
|
||||
})
|
||||
}else{
|
||||
uni.navigateBack({
|
||||
|
||||
Reference in New Issue
Block a user