mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-28 06:06:42 +08:00
fix(projects): fix VITE_SERVICE_MODAL_LOGOUT_CODES without i18n title (#507)
This commit is contained in:
parent
ff1d50461f
commit
47bc8d770d
@ -45,6 +45,11 @@ const local: App.I18n.Schema = {
|
||||
yesOrNo: {
|
||||
yes: 'Yes',
|
||||
no: 'No'
|
||||
},
|
||||
messageLevel: {
|
||||
success: 'Success',
|
||||
error: 'Error',
|
||||
warning: 'Warning'
|
||||
}
|
||||
},
|
||||
request: {
|
||||
|
@ -45,6 +45,11 @@ const local: App.I18n.Schema = {
|
||||
yesOrNo: {
|
||||
yes: '是',
|
||||
no: '否'
|
||||
},
|
||||
messageLevel: {
|
||||
success: '成功',
|
||||
error: '错误',
|
||||
warning: '警告'
|
||||
}
|
||||
},
|
||||
request: {
|
||||
|
@ -63,7 +63,7 @@ export const request = createFlatRequest<App.Service.Response, RequestInstanceSt
|
||||
window.addEventListener('beforeunload', handleLogout);
|
||||
|
||||
window.$dialog?.error({
|
||||
title: 'Error',
|
||||
title: $t('common.messageLevel.error'),
|
||||
content: response.data.msg,
|
||||
positiveText: $t('common.confirm'),
|
||||
maskClosable: false,
|
||||
|
5
src/typings/app.d.ts
vendored
5
src/typings/app.d.ts
vendored
@ -296,6 +296,11 @@ declare namespace App {
|
||||
yes: string;
|
||||
no: string;
|
||||
};
|
||||
messageLevel: {
|
||||
success: string;
|
||||
error: string;
|
||||
warning: string;
|
||||
};
|
||||
};
|
||||
request: {
|
||||
logout: string;
|
||||
|
Loading…
Reference in New Issue
Block a user