refactor: 登录超时的i18n

This commit is contained in:
dap 2025-01-17 21:18:44 +08:00
parent 087b9126b2
commit 261be4a3a6
3 changed files with 5 additions and 3 deletions

View File

@ -226,7 +226,7 @@ function createRequestClient(baseURL: string) {
return;
}
isLogoutProcessing = true;
const _msg = '登录超时, 请重新登录';
const _msg = $t('http.loginTimeout');
const userStore = useAuthStore();
userStore.logout().finally(() => {
message.error(_msg);

View File

@ -2,5 +2,6 @@
"apiRequestFailed": "Operation failed",
"operationSuccess": "Operation Success",
"successTip": "Success Tip",
"errorTip": "Error Tip"
"errorTip": "Error Tip",
"loginTimeout": "Login timeout, please log in again"
}

View File

@ -2,5 +2,6 @@
"apiRequestFailed": "请求出错,请稍候重试",
"operationSuccess": "操作成功",
"successTip": "成功提示",
"errorTip": "错误提示"
"errorTip": "错误提示",
"loginTimeout": "登录超时, 请重新登录"
}