Files
ClassContent/历届学生/front-end-team-10/项目练习/上课项目/失物招领/js/config/index.js
2024-09-27 02:06:13 +08:00

46 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 全局js配置,一般用来配置接口的基地址,和 短地址 等一些...
var config = {
// 开发阶段
devBaseUrl: 'http://127.0.0.1:3030',
// 测试阶段
testBaseUrl: 'http://127.0.0.1:3030',
// 正式阶段
prodBaseUrl: 'http://127.0.0.1:3030',
stage: 'dev', // dev test prod
switchStage: function () {
switch (this.stage) {
case "dev":
return this.devBaseUrl
break;
case "test":
return this.testBaseUrl
break;
case "prod":
return this.prodBaseUrl
break;
default:
break;
}
},
apiList: {
notice: '/home/notice',
info:'/home/info',
search: '/home/search',
tab: '/home/tab'
},
footerArr: [
{ title: '首页', href: 'index.html', img: '../img/index-icon/index.png' },
{ title: '广场', href: 'square.html', img: '../img/index-icon/dating.png' },
{ title: '我的', href: 'me.html', img: '../img/index-icon/user.png' },
// { title: '我的', href: 'me.html', icon: 'icon-wo' },
]
}