修改翻译

This commit is contained in:
不做码农 2022-06-11 13:57:08 +08:00
parent 7ff278d7d7
commit 18aee6d946
6 changed files with 12 additions and 9 deletions

View File

@ -45,7 +45,7 @@ watch(
} else if (val == 'zh-tw') {
locale.value = tw
} else {
locale.value = en
locale.value = zh
}
},
{

View File

@ -110,7 +110,8 @@
"today": "today",
"female": "Female",
"male": "male",
"sex": "gender"
"sex": "gender",
"systemTips": "system hint"
},
"btn": {
"add": "Add",

View File

@ -110,7 +110,8 @@
"lastMonth": "上月",
"sex": "性别",
"male": "男",
"female": "女"
"female": "女",
"systemTips": "系统提示"
},
"btn": {
"add": "新增",

View File

@ -110,7 +110,8 @@
"today": "今天",
"female": "女",
"male": "男",
"sex": "性別"
"sex": "性別",
"systemTips": "系統提示"
},
"btn": {
"add": "新增",

View File

@ -41,9 +41,9 @@ service.interceptors.response.use(res => {
return res.data
}
if (code == 401) {
ElMessageBox.confirm('登录状态已过期,请重新登录', '系统提示', {
confirmButtonText: '重新登录',
cancelButtonText: '取消',
ElMessageBox.confirm($t('login.loginTimeOut'), $t('common.systemTips'), {
confirmButtonText: $t('login.reLogin'),
cancelButtonText: $t('btn.cancel'),
type: 'warning'
}).then(() => {
useUserStore().logOut().then(() => {
@ -52,7 +52,7 @@ service.interceptors.response.use(res => {
})
})
return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
return Promise.reject($t('login.invalidSession'))
} else if (code == 0 || code == 1 || code == 110 || code == 101 || code == 403 || code == 500 || code == 429) {
ElMessage({
message: msg,