refactor: 使用独立about文件夹
This commit is contained in:
parent
5bdb29994d
commit
534d2cb12f
@ -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: '关于',
|
||||
},
|
||||
],
|
||||
|
@ -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": "关于"
|
||||
|
4
src/types/uni-pages.d.ts
vendored
4
src/types/uni-pages.d.ts
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user