[fix]用户升级

This commit is contained in:
OrangeM21
2020-05-29 19:11:00 +08:00
parent 25cab3f741
commit c7e57198ac
3 changed files with 7 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ ENV = 'development'
# base api
VUE_APP_BASE_API = '/rpc'
PUBLIC_PATH = '/ui'
VUE_APP_PUBLIC_PATH = '/ui'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
@@ -15,5 +15,5 @@ PUBLIC_PATH = '/ui'
VUE_CLI_BABEL_TRANSPILE_MODULES = true
# External auth
LOGIN_PATH = '/core/auth/login/'
LOGOUT_PATH = '/core/auth/logout/'
VUE_APP_LOGIN_PATH = '/core/auth/login/'
VUE_APP_LOGOUT_PATH = '/core/auth/logout/'

View File

@@ -3,9 +3,9 @@ ENV = 'production'
# base api
VUE_APP_BASE_API = '/'
PUBLIC_PATH = '/ui'
VUE_APP_PUBLIC_PATH = '/ui'
# External auth
LOGIN_PATH = '/core/auth/login/'
LOGOUT_PATH = '/core/auth/logout/
VUE_APP_LOGIN_PATH = '/core/auth/login/'
VUE_APP_LOGOUT_PATH = '/core/auth/logout/

View File

@@ -69,7 +69,7 @@ service.interceptors.response.use(
const response = error.response
if (response.status === 401) {
// 未授权重定向到登录页面
window.location = process.env.LOGIN_PATH
window.location = process.env.VUE_APP_LOGIN_PATH
// const title = ''
// const msg = i18n.t('auth.LoginRequiredMsg')
// MessageBox.confirm(msg, title, {