Skip to content

Commit

Permalink
refactor: 使用独立about文件夹
Browse files Browse the repository at this point in the history
  • Loading branch information
feige996 committed May 15, 2024
1 parent 5bdb299 commit 534d2cb
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pages.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '关于',
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{
"iconPath": "static/tabbar/example.png",
"selectedIconPath": "static/tabbar/exampleHL.png",
"pagePath": "pages/index/about",
"pagePath": "pages/about/about",
"text": "关于"
}
]
Expand All @@ -47,7 +47,7 @@
}
},
{
"path": "pages/index/about",
"path": "pages/about/about",
"type": "page",
"style": {
"navigationBarTitleText": "关于"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/types/uni-pages.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 534d2cb

Please sign in to comment.