加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pages.json 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
jo 提交于 2022-11-15 00:33 . 回退
{
"easycom": {
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
},
/* npm已引入uni-simple-router,参考:https://hhyang.cn/v2/
*页面路由跳转使用说明:
*router.push() 等同于 uni.navigateTo()使用:this.$Router.push({ name: 'router1', params: { userId: '123' }})
*router.replace() 等同于 uni.redirectTo()使用:this.$Router.replace({ name: 'router1', params: { userId: '123' }})
*router.replaceAll() 等同于 uni.reLaunch()使用:this.$Router.replaceAll({ name: 'router1', params: { userId: '123' }})
*router.pushTab() 等同于 uni.switchTab()使用:this.$Router.pushTab({ name: 'router1', params: { userId: '123' }})
*router.back(n,{...}) 等同于 uni.navigateBack()使用:this.$Router.back(2)
*推荐使用#命名路由
*{
* path: '/pages/router/router1/router1',
* name: 'router1'
*},
*/
"pages": [{
"path": "pages/tabbar/tabbar",
"name": "tabbar",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/tabbar/index",
"aliasPath": "/",
"name": "index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/tabbar/user",
"name": "user",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/tabbar/tool",
"name": "tool",
"style": {
"navigationStyle": "custom"
}
}
],
"subPackages": [{
"root": "pages/user",
"pages": [{
"path": "about/about",
"name": "about",
"style": {
"navigationBarTitleText": "关于",
"enablePullDownRefresh": false
}
},
{
"path": "setting/setting",
"name": "setting",
"style": {
"navigationBarTitleText": "设置",
"enablePullDownRefresh": false
}
},
{
"path": "userinfo/userinfo",
"name": "userinfo",
"style": {
"navigationBarTitleText": "个人信息",
"enablePullDownRefresh": false
}
}
]
}],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "宅宅工具箱",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8",
"pageOrientation": "auto"
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化