初始化v1.0.0

Signed-off-by: 1iyc <5212514+liycone@user.noreply.gitee.com>
main
1iyc 4 weeks ago
parent 54a6f2d6dc
commit d327a1e278

@ -5,7 +5,8 @@ VUE_APP_TITLE = 若依管理系统
ENV = 'development'
# 若依管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'
VUE_APP_BASE_API = '/admin-api'
VUE_APP_GATEWAY = 'http://localhost:8090'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

@ -5,4 +5,5 @@ VUE_APP_TITLE = 若依管理系统
ENV = 'production'
# 若依管理系统/生产环境
VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_API = '/admin-api'
VUE_APP_GATEWAY = 'http://localhost:8080'

@ -7,4 +7,5 @@ NODE_ENV = production
ENV = 'staging'
# 若依管理系统/测试环境
VUE_APP_BASE_API = '/stage-api'
VUE_APP_BASE_API = '/admin-api'
VUE_APP_GATEWAY = 'http://localhost:8080'

@ -5,7 +5,7 @@
"author": "若依",
"license": "MIT",
"scripts": {
"dev": "vue-cli-service serve",
"dev": "vue-cli-service serve --mode development",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",

@ -36,7 +36,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
target: `http://localhost:8080`,
target: process.env.VUE_APP_GATEWAY,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''

Loading…
Cancel
Save