12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /**
- * 系统设置
- */
- const config = {
- /**
- * 版本号
- */
- version: 'V1.0.0',
- /**
- * 请求接口域名
- */
- file: 'http://ssl.ycxxkj.com:38071',
- host: 'http://ssl.ycxxkj.com:38071/index.php',
- /**
- * 接口签名密钥
- */
- apiSignKey: '32a1ff74699ff2d6ce4c497cb94cb5c8',
- };
- let env = import.meta.env;
- console.log("==env.Mode:==", env.MODE);
- if (env.MODE == "development") {
- config.file = "http://192.168.0.170/project-manager";
- config.host = "http://192.168.0.170/project-manager/index.php";
- }
- if (env.MODE == 'workerman') {
- config.file = "http://localhost:2346"
- config.host = "http://localhost:2346"
- }
- if (env.MODE == 'release') {
- //本地
- config.file = 'http://192.168.0.83:5252';
- config.host = 'http://192.168.0.83:5252/index.php';
- //公网
- // config.file = "http://nxlz.ycxxkj.com:38071";
- // config.host = "http://nxlz.ycxxkj.com:38071/index.php";
- }
- if (env.MODE == 'test') {
- //公网
- config.file = 'https://php80.ycxxkj.com/project-manager_test/api';
- config.host = 'https://php80.ycxxkj.com/project-manager_test/api/public/index.php';
- }
- console.log('==config:==', config);
- export default config;
|