mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 01:46:42 +08:00
多环境配置支持
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# 生产环境配置
|
||||
ENV = 'production'
|
||||
ENV = 'preview'
|
||||
|
||||
# 管理系统/生产环境
|
||||
VUE_APP_BASE_API = '/systemapi'
|
||||
|
||||
26
.env.test
26
.env.test
@@ -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/'
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user