refactor: 迁移页面路由配置至 definePage 并重构 tabbar 实现
- 使用 definePage() 替代 <route> 自定义块配置页面路由 - 重构 tabbar 组件,移除 useTabbar 和 uni-mini-router 依赖 - 改用原生 uni.switchTab 实现标签页切换 - 更新相关配置文件和静态资源
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
"animationDuration": 300
|
||||
},
|
||||
"pages": [
|
||||
// GENERATED BY UNI-PAGES, PLATFORM: H5
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"type": "home",
|
||||
@@ -222,6 +223,7 @@
|
||||
"backgroundColor": "@tabBgColor",
|
||||
"borderStyle": "@tabBorderStyle",
|
||||
"list": [
|
||||
// GENERATED BY UNI-PAGES, PLATFORM: H5
|
||||
{
|
||||
"pagePath": "pages/index/index"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user