refactor: 使用独立about文件夹

This commit is contained in:
菲鸽 2024-05-15 10:08:14 +08:00
parent 5bdb29994d
commit 534d2cb12f
6 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ export default defineUniPages({
{
iconPath: 'static/tabbar/example.png',
selectedIconPath: 'static/tabbar/exampleHL.png',
pagePath: 'pages/index/about',
pagePath: 'pages/about/about',
text: '关于',
},
],

View File

@ -32,7 +32,7 @@
{
"iconPath": "static/tabbar/example.png",
"selectedIconPath": "static/tabbar/exampleHL.png",
"pagePath": "pages/index/about",
"pagePath": "pages/about/about",
"text": "关于"
}
]
@ -47,7 +47,7 @@
}
},
{
"path": "pages/index/about",
"path": "pages/about/about",
"type": "page",
"style": {
"navigationBarTitleText": "关于"

View File

@ -5,12 +5,12 @@
interface NavigateToOptions {
url: "/pages/index/index" |
"/pages/index/about";
"/pages/about/about";
}
interface RedirectToOptions extends NavigateToOptions {}
interface SwitchTabOptions {
url: "/pages/index/index" | "/pages/index/about"
url: "/pages/index/index" | "/pages/about/about"
}
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;