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
516 B

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