From 5045c9ce93bfe2a94e19b020a41e1afde21e72e1 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 + public/development_address_config.js | 20 +++++++++++++++++++ public/index.html | 9 ++++++++- ...config.js => production_address_config.js} | 7 +++---- 4 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 public/development_address_config.js rename public/{api_address_config.js => production_address_config.js} (65%) 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/development_address_config.js b/public/development_address_config.js new file mode 100644 index 0000000..0a010d3 --- /dev/null +++ b/public/development_address_config.js @@ -0,0 +1,20 @@ +/** + * 防止打包部署时路径被写死-开发环境的配置项 + */ +window._CONFIG = {}; +window._CONFIG["domianURL"] = "/jero-boot"; // 路由转发 devServer +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://10.0.1.27:21825/signUpEntrance' + +// 签到二维码url +window._CONFIG['signInUrl'] = '/meeting/payMeetingSituation/getSignInPage' + diff --git a/public/index.html b/public/index.html index 6f94fd0..b2b324b 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' ) { %> + + <% } %>