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', iconPath: 'static/tabbar/example.png',
selectedIconPath: 'static/tabbar/exampleHL.png', selectedIconPath: 'static/tabbar/exampleHL.png',
pagePath: 'pages/index/about', pagePath: 'pages/about/about',
text: '关于', text: '关于',
}, },
], ],

View File

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

View File

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