TakeOutShop/server/config.js
2025-04-11 17:49:34 +08:00

22 lines
365 B
JavaScript

// 环境接口域名变量
let url = '';
// 手动切换环境
const type = 'dev'
/**
* 环境配置地址
* dev开发
* test测试
* prod生产
*/
if(type === 'dev'){
url = "http://mnse8q.natappfree.cc";
}
if(type === 'test'){
url = "https://japiuat.3721zh.com/webapp";
}
if(type === 'prod'){
url = "https://newapi.3721zh.com/webapp"
}
export{url}