http://localhost:8082/#/ 或 http://localhost:8082
跳转的路由为pages中设置的第一个页面如:src/pages/demo/index
{
"pages": [
{
"path": "src/pages/demo/index",
"style": {
"navigationBarTitleText": "demo",
}
},
{
"path": "src/pages/index/index",
"style": {
"navigationBarTitleText": "首页",
}
},
],
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#1677FF",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"custom": true,
"list": [
{
"pagePath": "src/pages/index/index",
"text": "首页",
"iconPath": "static/a.png",
"selectedIconPath": "static/a_active.png"
},
{
"pagePath": "src/pages/demo/index",
"text": "demo",
"iconPath": "static/demo.png",
"selectedIconPath": "static/demo_active.png"
}
]
}
}