diff --git a/.env.preview b/.env.preview index 003beda1..c1e3d4d3 100644 --- a/.env.preview +++ b/.env.preview @@ -1,5 +1,5 @@ # 生产环境配置 -ENV = 'production' +ENV = 'preview' # 管理系统/生产环境 VUE_APP_BASE_API = '/systemapi' diff --git a/.env.test b/.env.test deleted file mode 100644 index 003beda1..00000000 --- a/.env.test +++ /dev/null @@ -1,26 +0,0 @@ -# 生产环境配置 -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/package.json b/package.json index edc3f42e..d5212c4a 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,8 @@ "serve": "vue-cli-service serve", "build": "vue-cli-service build", "build:development": "vue-cli-service build --mode development", + "build:preview": "vue-cli-service build --mode preview", + "build:testing": "vue-cli-service build --mode testing", "lint": "vue-cli-service lint" }, "dependencies": {