更新
This commit is contained in:
3
resources/mobile/config/dev.config.js
Normal file
3
resources/mobile/config/dev.config.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
baseURL: 'http://localhost:8000/'
|
||||
}
|
||||
46
resources/mobile/config/index.js
Normal file
46
resources/mobile/config/index.js
Normal file
@@ -0,0 +1,46 @@
|
||||
const config = {
|
||||
baseURL: 'http://localhost:8000/',
|
||||
tabbarList: [
|
||||
{
|
||||
pagePath: "/pages/index/index",
|
||||
text: "首页",
|
||||
icon: "home",
|
||||
activeIcon: "home-filled",
|
||||
badge: 0
|
||||
},
|
||||
{
|
||||
pagePath: "/pages/account/bill/index",
|
||||
text: "账单",
|
||||
icon: "list",
|
||||
activeIcon: "list",
|
||||
badge: 0
|
||||
},
|
||||
{
|
||||
pagePath: "/pages/account/statistics/index",
|
||||
text: "统计",
|
||||
icon: "chart",
|
||||
activeIcon: "chart",
|
||||
badge: 0
|
||||
},
|
||||
{
|
||||
pagePath: "/pages/ucenter/index/index",
|
||||
text: "我的",
|
||||
icon: "person",
|
||||
activeIcon: "person-filled",
|
||||
badge: 0
|
||||
}
|
||||
],
|
||||
whitelist: [
|
||||
'/pages/ucenter/login/index',
|
||||
'/pages/ucenter/register/index',
|
||||
'/pages/ucenter/agreement/user',
|
||||
'/pages/ucenter/agreement/privacy',
|
||||
]
|
||||
}
|
||||
|
||||
import devConfig from './dev.config.js'
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
Object.assign(config, devConfig)
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in New Issue
Block a user