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.

19 lines
470 B

2 years ago
const mode = 'production'; //devLocal本地测试、devOnline线上测试、production生产环境
4 months ago
let ROOTPATH = 'https://h5.jscnsaas.cn';
// let ROOTPATH = 'http://h5.ali251.langye.net';
3 years ago
switch (mode) {
case 'devLocal':
4 months ago
ROOTPATH = ROOTPATH
3 years ago
break;
case 'devOnline':
4 months ago
ROOTPATH = ROOTPATH
3 years ago
break;
case 'production':
4 months ago
ROOTPATH = ROOTPATH
3 years ago
break;
default:
throw new Error('未配置环境');
console.log(`未配置环境`);
}
2 years ago
export { ROOTPATH }