|
@@ -1,8 +1,9 @@
|
|
|
const { name } = require("./package.json");
|
|
|
|
|
|
let env = process.env.NODE_ENV.toString();
|
|
|
+//let project = process.env.VUE_APP_PROJECT.toString();
|
|
|
console.log('env2', env);
|
|
|
-console.log('env2--name', name);
|
|
|
+
|
|
|
|
|
|
module.exports = {
|
|
|
publicPath: '/sgshow', //相对路径
|
|
@@ -19,29 +20,31 @@ module.exports = {
|
|
|
"/daping": {
|
|
|
// http://api.sagacloud.cn/duoduo-service/object-service/object/floor/queryFs
|
|
|
//target: 'http://192.168.0.14:52021', // 接 口环境
|
|
|
- 'target': 'http://api.sagacloud.cn/', // 开发环境
|
|
|
+ 'target': 'http://duoduoenv.sagacloud.cn/', // 开发环境
|
|
|
// target: 'http://test.persagy.com', // 测试环境
|
|
|
changeOrigin: true,
|
|
|
//logLevel: "debug",
|
|
|
pathRewrite: {
|
|
|
- '^/daping': 'http://api.sagacloud.cn/', // 接口环境
|
|
|
+ '^/daping': '', // 接口环境
|
|
|
// '^/daping': 'http://192.168.0.14:52015', // 开发环境
|
|
|
|
|
|
},
|
|
|
},
|
|
|
- "/weather": {
|
|
|
- // http://api.sagacloud.cn/duoduo-service/object-service/object/floor/queryFs
|
|
|
- // target: 'http://192.168.0.14:52010', // 接 口环境
|
|
|
- 'target': 'https://duoduoenv.sagacloud.cn/', // 开发环境
|
|
|
- // target: 'http://test.persagy.com', // 测试环境
|
|
|
- changeOrigin: true,
|
|
|
- //logLevel: "debug",
|
|
|
- pathRewrite: {
|
|
|
- // '^/daping': 'http://192.168.0.14:52010', // 接口环境
|
|
|
- '^/weather': 'https://duoduoenv.sagacloud.cn/', // 开发环境
|
|
|
|
|
|
- },
|
|
|
- },
|
|
|
+
|
|
|
+ // "/weather": {
|
|
|
+ // // http://api.sagacloud.cn/duoduo-service/object-service/object/floor/queryFs
|
|
|
+ // // target: 'http://192.168.0.14:52010', // 接 口环境
|
|
|
+ // 'target': 'https://duoduoenv.sagacloud.cn/', // 开发环境
|
|
|
+ // // target: 'http://test.persagy.com', // 测试环境
|
|
|
+ // changeOrigin: true,
|
|
|
+ // //logLevel: "debug",
|
|
|
+ // pathRewrite: {
|
|
|
+ // // '^/daping': 'http://192.168.0.14:52010', // 接口环境
|
|
|
+ // '^/weather': '', // 开发环境
|
|
|
+
|
|
|
+ // },
|
|
|
+ // },
|
|
|
|
|
|
},
|
|
|
},
|