From 8c524afd3ced5b2acd4405d167c5cf39391ad27d Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Tue, 4 Jan 2022 15:45:06 +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 | 8 +++---- public/index.html | 6 +++++- public/local_production_address_config.js | 26 +++++++++++++++++++++++ 5 files changed, 39 insertions(+), 5 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 440fde4..ed54814 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 f808a9e..b31ce8e 100644 --- a/public/development_address_config.js +++ b/public/development_address_config.js @@ -3,17 +3,17 @@ */ window._CONFIG = {}; window._CONFIG["domianURL"] = "/jero-boot"; // 路由转发 devServer -window._CONFIG["domianWebSocketURL"] = "http://localhost:8080/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://localhost: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:21824/signupentrance" // 会议管理签到二维码地址 微信扫描二维码 跳转的 地址 要么全大写 要么全小写 window._CONFIG["singInQRCodeURL"] = "http://10.10.10.46:8055/signinurl" // 页面显示用的会议报名二维码连接 @@ -24,4 +24,4 @@ window._CONFIG["sendCompanyName"] = "中汽标准所" // 票据打印--寄件人地址 window._CONFIG["sendAddress"] = "天津市东丽区先锋东路68号" // 票据打印--寄件人邮编 -window._CONFIG["sendPostCode"] = "300000" \ No newline at end of file +window._CONFIG["sendPostCode"] = "300000" diff --git a/public/index.html b/public/index.html index 6972211..d4124e3 100644 --- a/public/index.html +++ b/public/index.html @@ -12,9 +12,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' ) { %> + + <% } %>