mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 17:54:37 +00:00
[fix]用户升级
This commit is contained in:
@@ -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/'
|
||||||
|
@@ -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/
|
||||||
|
|
||||||
|
@@ -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, {
|
||||||
|
Reference in New Issue
Block a user