[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 # base api
VUE_APP_BASE_API = '/rpc' VUE_APP_BASE_API = '/rpc'
PUBLIC_PATH = '/ui' VUE_APP_PUBLIC_PATH = '/ui'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. # 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 VUE_CLI_BABEL_TRANSPILE_MODULES = true
# External auth # External auth
LOGIN_PATH = '/core/auth/login/' VUE_APP_LOGIN_PATH = '/core/auth/login/'
LOGOUT_PATH = '/core/auth/logout/' VUE_APP_LOGOUT_PATH = '/core/auth/logout/'

View File

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

View File

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