diff --git a/config/index.js b/config/index.js index 087e320..1f62943 100644 --- a/config/index.js +++ b/config/index.js @@ -31,14 +31,14 @@ "^/groupApi": "" //需要rewrite重写的, } }, - '/projectApi': { - 'target': 'http://192.168.16.199:7099', //陆展 - 'changeOrigin': true, //是否跨域 - 'pathRewrite': { - '^/projectApi': '' //需要rewrite重写的, + "/projectApi": { + target: "http://192.168.16.199:7099", //陆展 + changeOrigin: true, //是否跨域 + pathRewrite: { + "^/projectApi": "" //需要rewrite重写的, } }, - '/dataApi': { + "/dataApi": { target: "http://132.232.115.20:8300/dataApi", changeOrigin: true, //是否跨域 pathRewrite: { @@ -74,19 +74,19 @@ "^/ZhuangTaiJianKong": "" //需要rewrite重写的, } }, - '/IotPc': { + "/IotPc": { // 物联网平台端信息汇总 // 'target': 'http://192.168.16.115:8288', // 接口域名 - 'target': 'http://192.168.16.100:8289', // 接口域名 - 'changeOrigin': true, //是否跨域 - 'pathRewrite': { - '^/IotPc': '' //需要rewrite重写的, + target: "http://192.168.16.100:8289", // 接口域名 + changeOrigin: true, //是否跨域 + pathRewrite: { + "^/IotPc": "" //需要rewrite重写的, } - }, + } }, // Various Dev Server settings - host: "192.168.20.97", // can be overwritten by process.env.HOST + host: "localhost", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/config/index.js b/config/index.js index 087e320..1f62943 100644 --- a/config/index.js +++ b/config/index.js @@ -31,14 +31,14 @@ "^/groupApi": "" //需要rewrite重写的, } }, - '/projectApi': { - 'target': 'http://192.168.16.199:7099', //陆展 - 'changeOrigin': true, //是否跨域 - 'pathRewrite': { - '^/projectApi': '' //需要rewrite重写的, + "/projectApi": { + target: "http://192.168.16.199:7099", //陆展 + changeOrigin: true, //是否跨域 + pathRewrite: { + "^/projectApi": "" //需要rewrite重写的, } }, - '/dataApi': { + "/dataApi": { target: "http://132.232.115.20:8300/dataApi", changeOrigin: true, //是否跨域 pathRewrite: { @@ -74,19 +74,19 @@ "^/ZhuangTaiJianKong": "" //需要rewrite重写的, } }, - '/IotPc': { + "/IotPc": { // 物联网平台端信息汇总 // 'target': 'http://192.168.16.115:8288', // 接口域名 - 'target': 'http://192.168.16.100:8289', // 接口域名 - 'changeOrigin': true, //是否跨域 - 'pathRewrite': { - '^/IotPc': '' //需要rewrite重写的, + target: "http://192.168.16.100:8289", // 接口域名 + changeOrigin: true, //是否跨域 + pathRewrite: { + "^/IotPc": "" //需要rewrite重写的, } - }, + } }, // Various Dev Server settings - host: "192.168.20.97", // can be overwritten by process.env.HOST + host: "localhost", // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/components/ConfigManager/SiteManagement.vue b/src/components/ConfigManager/SiteManagement.vue index 6a803a5..e198648 100644 --- a/src/components/ConfigManager/SiteManagement.vue +++ b/src/components/ConfigManager/SiteManagement.vue @@ -671,8 +671,7 @@ };