From 053826794c7ef6ca5015220d6c94fe86ef756124 Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Tue, 4 Jan 2022 15:43:33 +0800 Subject: [PATCH] =?UTF-8?q?[add]-=E5=AE=A2=E6=88=B7=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=92=8C=E6=9C=AC=E5=9C=B0=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E6=89=93=E5=8C=85=E5=8F=82=E6=95=B0=E7=9A=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 3 +++ package.json | 1 + public/development_address_config.js | 6 +++--- public/index.html | 6 +++++- public/local_production_address_config.js | 22 ++++++++++++++++++++++ 5 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 .env.test create mode 100644 public/local_production_address_config.js diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..fcd7902 --- /dev/null +++ b/.env.test @@ -0,0 +1,3 @@ +# 本地139测试环境的变量 +NODE_ENV=production +VUE_APP_CURRENT_INFO=local_prod diff --git a/package.json b/package.json index afd1e57..b2dc39e 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", + "test": "vue-cli-service build --mode test", "lint": "vue-cli-service lint" }, "dependencies": { diff --git a/public/development_address_config.js b/public/development_address_config.js index 611a992..0ac2bd0 100644 --- a/public/development_address_config.js +++ b/public/development_address_config.js @@ -4,16 +4,16 @@ window._CONFIG = {}; window._CONFIG["domianURL"] = "/jero-boot"; // 路由转发 devServer // websocket连接的地址 -window._CONFIG["domianWebSocketURL"] = "http://10.0.10.78:21824/jero-boot"; +window._CONFIG["domianWebSocketURL"] = "http://10.0.1.9:21824/jero-boot"; // 单点登录地址 window._CONFIG["staticDomainURL"] = window._CONFIG["domianURL"] + "/sys/common/download"; window._CONFIG["pdfDomainURL"] = window._CONFIG["domianURL"] + "/sys/common/pdf/pdfPreviewIframe"; window._CONFIG["casPrefixUrl"] = "http://cas.example.org:8443/cas"; // 预览文件地址 -window._CONFIG["onlinePreviewDomainURL"] = "http://10.0.10.78:8012/onlinePreview"; +window._CONFIG["onlinePreviewDomainURL"] = "http://10.0.1.9:9012/onlinePreview"; // 会议管理报名二维码地址 -window._CONFIG['singUpQRCodeURL'] = 'http://localhost:3000/signupentrance' +window._CONFIG['singUpQRCodeURL'] = 'http://10.0.1.9:21825/signupentrance' // 路由转发 -会员系统的路由转发前缀 window._CONFIG["memberURL"] = "/memberApi"; diff --git a/public/index.html b/public/index.html index 1f90918..ae52e4e 100644 --- a/public/index.html +++ b/public/index.html @@ -11,9 +11,13 @@ <% if (process.env.NODE_ENV === 'development' ) { %> <% } %> - <% if (process.env.NODE_ENV === 'production' ) { %> + <% if (process.env.NODE_ENV === 'production' && process.env.VUE_APP_CURRENT_INFO !== 'local_prod') { %> <% } %> + + <% if (process.env.VUE_APP_CURRENT_INFO === 'local_prod' ) { %> + + <% } %>