From fcdcd9c804d4cbc38a38bcc4eb28ecaa10b26d3f Mon Sep 17 00:00:00 2001 From: 0000792 <1161664478@qq.com> Date: Tue, 26 Jul 2022 10:34:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 3 ++- public/js/config.js | 2 +- vue.config.js | 32 ++++++++++++++++---------------- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.env.development b/.env.development index 367cfd4d..32efeade 100644 --- a/.env.development +++ b/.env.development @@ -14,4 +14,5 @@ port= 9988 //target = http://192.168.18.134:8899 //target = http://192.168.18.139:8899 // target = http://192.168.18.136:8899 -target = http://192.168.10.241:30646 +//target = http://192.168.10.241:30646 +target = http://192.168.18.140:8899 diff --git a/public/js/config.js b/public/js/config.js index 2644293c..a056000a 100644 --- a/public/js/config.js +++ b/public/js/config.js @@ -12,7 +12,7 @@ let iotWebSocketAlarmBaseUrl = '' let BaseUrl = '' // 手动配置的地址 -var iotHost="192.168.10.241:30646"; // 海创iot 平台 host +var iotHost="192.168.10.241:32024"; // 海创iot 平台 host // var hrefHost = window.location.host; // let httpProtocol = window.location.protocol; var hrefHost = '192.168.18.139'; diff --git a/vue.config.js b/vue.config.js index 5affdb01..ab74721c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -27,22 +27,22 @@ module.exports = { // 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。 productionSourceMap: false, // webpack-dev-server 相关配置 - devServer: { - host: '0.0.0.0', - port: port, - open: true, - proxy: { - // detail: https://cli.vuejs.org/config/#devserver-proxy - [process.env.VUE_APP_BASE_API]: { - target: process.env.target, - changeOrigin: true, - pathRewrite: { - ['^' + process.env.VUE_APP_BASE_API]: '' - } - } - }, - disableHostCheck: true - }, + // devServer: { + // host: '0.0.0.0', + // port: port, + // open: true, + // proxy: { + // // detail: https://cli.vuejs.org/config/#devserver-proxy + // [process.env.VUE_APP_BASE_API]: { + // target: process.env.target, + // changeOrigin: true, + // pathRewrite: { + // ['^' + process.env.VUE_APP_BASE_API]: '' + // } + // } + // }, + // disableHostCheck: true + // }, configureWebpack: { externals: { AMap: 'AMap'