提交 45f26735 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

refactor: 优化token过期提示框

上级 fa94b6e0
......@@ -126,7 +126,8 @@ export default {
expires: 'Login token expired, please login again',
tokenError: 'Token error, please login again',
username_error: 'Please enter the correct ID',
password_error: 'The password can not be less than 8 digits'
password_error: 'The password can not be less than 8 digits',
login_again: 'Login again'
},
commons: {
no_target_permission: 'No permission',
......
......@@ -109,24 +109,25 @@ export default {
navbar: {
dashboard: '首頁',
github: '項目地址',
logOut: '退出登',
logOut: '退出登',
profile: '個人中心',
theme: '換膚',
size: '佈局大小'
},
login: {
title: '系統登',
title: '系統登',
welcome: '歡迎使用',
logIn: '登',
logIn: '登',
username: '帳號',
password: '密碼',
any: '任意字符',
thirdparty: '第三方登',
thirdparty: '第三方登',
thirdpartyTips: '本地不能模擬,請結合自己業務進行模擬!!!',
expires: '登陸信息過期,請重新登陸',
tokenError: '信息錯誤,請重新登',
expires: '登錄信息過期,請重新登錄',
tokenError: '信息錯誤,請重新登',
username_error: '請輸入正確的 ID',
password_error: '密碼不小於 8 位'
password_error: '密碼不小於 8 位',
login_again: '重新登錄'
},
commons: {
no_target_permission: '沒有權限',
......@@ -183,7 +184,7 @@ export default {
prompt: '提示',
operating: '操作',
input_limit: '長度在 {0} 到 {1} 個字符',
login: '登',
login: '登',
welcome: '一站式開源數據分析平臺',
username: '姓名',
password: '密碼',
......@@ -255,7 +256,7 @@ export default {
remove: '移除',
remove_cancel: '移除取消',
remove_success: '移除成功',
tips: '認證信息已過期,請重新登',
tips: '認證信息已過期,請重新登',
not_performed_yet: '尚未執行',
incorrect_input: '輸入內容不正確',
delete_confirm: '請輸入以下內容,確認刪除:',
......@@ -1165,9 +1166,9 @@ export default {
},
display: {
logo: '頭部系統 Logo',
loginLogo: '登頁面頭部 Logo',
loginImage: '登頁面右側圖片',
loginTitle: '登頁面標題',
loginLogo: '登頁面頭部 Logo',
loginImage: '登頁面右側圖片',
loginTitle: '登頁面標題',
title: '系統名稱',
advice_size: '建議圖片大小'
},
......
......@@ -126,7 +126,8 @@ export default {
expires: '登录信息过期,请重新登录',
tokenError: '登陆信息错误,请重新登录',
username_error: '请输入正确的 ID',
password_error: '密码不小于 8 位'
password_error: '密码不小于 8 位',
login_again: '重新登录'
},
commons: {
no_target_permission: '没有权限',
......
......@@ -62,6 +62,9 @@ const checkAuth = response => {
store.dispatch('user/logout').then(() => {
location.reload()
})
}, {
confirmButtonText: i18n.t('login.login_again'),
showClose: false
})
}
......@@ -71,6 +74,9 @@ const checkAuth = response => {
store.dispatch('user/logout').then(() => {
location.reload()
})
}, {
confirmButtonText: i18n.t('login.login_again'),
showClose: false
})
}
// token到期后自动续命 刷新token
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论