From 9f0e6ebc8882fd9fc6219c2cbe6a45c9d085122b Mon Sep 17 00:00:00 2001 From: fengchenchen Date: Tue, 12 Oct 2021 16:48:11 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20-=E5=AF=B9=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A0=85=E9=80=B2=E8=A1=8C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 1 + ...s_config.js => development_address_config.js} | 8 +++++--- public/index.html | 9 ++++++++- public/production_address_config.js | 16 ++++++++++++++++ 4 files changed, 30 insertions(+), 4 deletions(-) rename public/{api_address_config.js => development_address_config.js} (73%) create mode 100644 public/production_address_config.js diff --git a/.eslintignore b/.eslintignore index 47f7da7..9e5fc16 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ /dist /public +/*.js diff --git a/public/api_address_config.js b/public/development_address_config.js similarity index 73% rename from public/api_address_config.js rename to public/development_address_config.js index b269fdd..0a010d3 100644 --- a/public/api_address_config.js +++ b/public/development_address_config.js @@ -1,18 +1,20 @@ /** - * 防止打包部署时路径被写死 + * 防止打包部署时路径被写死-开发环境的配置项 */ window._CONFIG = {}; window._CONFIG["domianURL"] = "/jero-boot"; // 路由转发 devServer -window._CONFIG["domianWebSocketURL"] = "http://localhost:8080/jero-boot"; +window._CONFIG["domianWebSocketURL"] = "http://localhost: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['singUpQRCodeURL'] = 'http://localhost:3000/signUpEntrance' +window._CONFIG['singUpQRCodeURL'] = 'http://10.0.1.27:21825/signUpEntrance' + // 签到二维码url window._CONFIG['signInUrl'] = '/meeting/payMeetingSituation/getSignInPage' diff --git a/public/index.html b/public/index.html index 03ee5ff..6972211 100644 --- a/public/index.html +++ b/public/index.html @@ -7,7 +7,14 @@ <%= htmlWebpackPlugin.options.title %> - + + + <% if (process.env.NODE_ENV === 'development' ) { %> + + <% } %> + <% if (process.env.NODE_ENV === 'production' ) { %> + + <% } %>