You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
515 B

2 years ago
const mode = 'devLocal'; //devLocal:本地测试、devOnline:线上测试、production:生产环境
5 months ago
// let ROOTPATH = "https://yikangyang.ali251.langye.net"; //域名
let ROOTPATH = "https://yikangyang-test.ali251.langye.net"; //域名
1 year ago
2 years ago
switch (mode) {
case 'devLocal':
1 year ago
ROOTPATH = ROOTPATH
2 years ago
break;
case 'devOnline':
1 year ago
ROOTPATH = ROOTPATH
2 years ago
break;
case 'production':
1 year ago
ROOTPATH = ROOTPATH
2 years ago
break;
default:
throw new Error('未配置环境');
console.log(`未配置环境`);
}
2 years ago
export { ROOTPATH }