40 lines
1.2 KiB
JavaScript
40 lines
1.2 KiB
JavaScript
var config = {
|
|
devBaseUrl: 'http://127.0.0.1:3000/api/json', // 开发阶段
|
|
testBaseUrl: 'http://127.0.0.1:3000/api/test', // 测试阶段
|
|
prodBaseUrl: 'http://192.168.31.100:3000/api/json', // 上线阶段
|
|
stage: 'dev', // dev test prod
|
|
apiList: {
|
|
index: '/index',
|
|
info: '/info',
|
|
classList: '/class',
|
|
classListArr: '/classList',
|
|
model: `/allModel`,
|
|
search: '/search',
|
|
mechanism : '/mechanism',
|
|
modelList:'/modelList',
|
|
collection : '/collection',
|
|
jigouxiangqing : '/mechanismList',
|
|
},
|
|
footerList: [
|
|
{ title: '首页', icon: 'icon-home', url: 'index.html' },
|
|
{ title: '机构', icon: 'icon-jigou', url: 'mechanism.html' },
|
|
{ title: '模特', icon: 'icon-me', url: 'model.html' },
|
|
{ title: '我的', icon: 'icon-wo', url: 'my.html' },
|
|
],
|
|
checkUrl: function () {
|
|
switch (this.stage) {
|
|
case "dev":
|
|
return this.devBaseUrl
|
|
break;
|
|
case "test":
|
|
return this.testBaseUrl
|
|
break;
|
|
case "prod":
|
|
return this.prodBaseUrl
|
|
break;
|
|
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
} |