fix(projects): fix VITE_SERVICE_MODAL_LOGOUT_CODES without i18n title (#507)

This commit is contained in:
Ma.Jinkai 2024-06-18 09:30:39 +08:00
parent ff1d50461f
commit 47bc8d770d
4 changed files with 16 additions and 1 deletions

View File

@ -45,6 +45,11 @@ const local: App.I18n.Schema = {
yesOrNo: { yesOrNo: {
yes: 'Yes', yes: 'Yes',
no: 'No' no: 'No'
},
messageLevel: {
success: 'Success',
error: 'Error',
warning: 'Warning'
} }
}, },
request: { request: {

View File

@ -45,6 +45,11 @@ const local: App.I18n.Schema = {
yesOrNo: { yesOrNo: {
yes: '是', yes: '是',
no: '否' no: '否'
},
messageLevel: {
success: '成功',
error: '错误',
warning: '警告'
} }
}, },
request: { request: {

View File

@ -63,7 +63,7 @@ export const request = createFlatRequest<App.Service.Response, RequestInstanceSt
window.addEventListener('beforeunload', handleLogout); window.addEventListener('beforeunload', handleLogout);
window.$dialog?.error({ window.$dialog?.error({
title: 'Error', title: $t('common.messageLevel.error'),
content: response.data.msg, content: response.data.msg,
positiveText: $t('common.confirm'), positiveText: $t('common.confirm'),
maskClosable: false, maskClosable: false,

View File

@ -296,6 +296,11 @@ declare namespace App {
yes: string; yes: string;
no: string; no: string;
}; };
messageLevel: {
success: string;
error: string;
warning: string;
};
}; };
request: { request: {
logout: string; logout: string;