From cce3e21837843326bac5c5f20cbb279922619335 Mon Sep 17 00:00:00 2001 From: daihh Date: Fri, 3 Jun 2022 10:36:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E6=8F=90=E4=BA=A4=E4=BF=9D=E7=95=99?= =?UTF-8?q?=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 5 ++++- .env.preview | 26 ++++++++++++++++++++++++++ .env.production | 3 +++ .env.test | 26 ++++++++++++++++++++++++++ src/components/PortalFooter.vue | 4 ++-- src/main.js | 1 + src/security.js | 13 ++++++++++++- src/utils/constants.js | 6 +----- src/utils/tools.js | 8 +++++--- src/views/Index.vue | 4 +++- src/views/Login.vue | 2 ++ src/views/portal/course/Micro.vue | 3 ++- src/views/study/Courses.vue | 17 +---------------- src/views/study/TaskList.vue | 2 -- 14 files changed, 88 insertions(+), 32 deletions(-) create mode 100644 .env.preview create mode 100644 .env.test diff --git a/.env.development b/.env.development index c00eb3dd..24a9a462 100644 --- a/.env.development +++ b/.env.development @@ -14,7 +14,10 @@ VUE_APP_BOE_WEB_URL = 'https://u.boe.com' VUE_APP_BOE_MOBILE_URL = 'http://192.168.0.10:8082/mobile' # File路径的基础url -VUE_APP_FILE_BASE_URL = '/cdn/upload' +VUE_APP_FILE_BASE_URL = 'http://localhost:9090/cdn/upload' + +# File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 +VUE_APP_FILE_RELATIVE_PATH = 'http://localhost:9090/cdn/upload' # 登录地址 VUE_APP_LOGIN_URL='/pc/login' diff --git a/.env.preview b/.env.preview new file mode 100644 index 00000000..003beda1 --- /dev/null +++ b/.env.preview @@ -0,0 +1,26 @@ +# 生产环境配置 +ENV = 'production' + +# 管理系统/生产环境 +VUE_APP_BASE_API = '/systemapi' + +# BOE管理系统/开发环境 +VUE_APP_BOE_BASE_API = '/uboeApi' + +# BOE系统网址 +VUE_APP_BOE_WEB_URL = 'https://u.boe.com' + +# BOE 移动端url +VUE_APP_BOE_MOBILE_URL = 'http://u.boe.com' + +# File路径的基础url +VUE_APP_FILE_BASE_URL='http://u-pre.boe.com/upload' + +# File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 +VUE_APP_FILE_RELATIVE_PATH = '/upload' + +# 虚拟目录的变量,结尾的/在vue.config.js中添加 +VUE_APP_PUBLIC_PATH='/pc' + +# 登录地址 +VUE_APP_LOGIN_URL='https://u-pre.boe.com/web/' diff --git a/.env.production b/.env.production index d0939629..003beda1 100644 --- a/.env.production +++ b/.env.production @@ -16,6 +16,9 @@ VUE_APP_BOE_MOBILE_URL = 'http://u.boe.com' # File路径的基础url VUE_APP_FILE_BASE_URL='http://u-pre.boe.com/upload' +# File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 +VUE_APP_FILE_RELATIVE_PATH = '/upload' + # 虚拟目录的变量,结尾的/在vue.config.js中添加 VUE_APP_PUBLIC_PATH='/pc' diff --git a/.env.test b/.env.test new file mode 100644 index 00000000..003beda1 --- /dev/null +++ b/.env.test @@ -0,0 +1,26 @@ +# 生产环境配置 +ENV = 'production' + +# 管理系统/生产环境 +VUE_APP_BASE_API = '/systemapi' + +# BOE管理系统/开发环境 +VUE_APP_BOE_BASE_API = '/uboeApi' + +# BOE系统网址 +VUE_APP_BOE_WEB_URL = 'https://u.boe.com' + +# BOE 移动端url +VUE_APP_BOE_MOBILE_URL = 'http://u.boe.com' + +# File路径的基础url +VUE_APP_FILE_BASE_URL='http://u-pre.boe.com/upload' + +# File路径的基础url的相对路径,加此项是为了不影响之前的路径配置 +VUE_APP_FILE_RELATIVE_PATH = '/upload' + +# 虚拟目录的变量,结尾的/在vue.config.js中添加 +VUE_APP_PUBLIC_PATH='/pc' + +# 登录地址 +VUE_APP_LOGIN_URL='https://u-pre.boe.com/web/' diff --git a/src/components/PortalFooter.vue b/src/components/PortalFooter.vue index b3a77c2c..a32c0f20 100644 --- a/src/components/PortalFooter.vue +++ b/src/components/PortalFooter.vue @@ -1,5 +1,5 @@