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: {
|
yesOrNo: {
|
||||||
yes: 'Yes',
|
yes: 'Yes',
|
||||||
no: 'No'
|
no: 'No'
|
||||||
|
},
|
||||||
|
messageLevel: {
|
||||||
|
success: 'Success',
|
||||||
|
error: 'Error',
|
||||||
|
warning: 'Warning'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
request: {
|
request: {
|
||||||
|
@ -45,6 +45,11 @@ const local: App.I18n.Schema = {
|
|||||||
yesOrNo: {
|
yesOrNo: {
|
||||||
yes: '是',
|
yes: '是',
|
||||||
no: '否'
|
no: '否'
|
||||||
|
},
|
||||||
|
messageLevel: {
|
||||||
|
success: '成功',
|
||||||
|
error: '错误',
|
||||||
|
warning: '警告'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
request: {
|
request: {
|
||||||
|
@ -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,
|
||||||
|
5
src/typings/app.d.ts
vendored
5
src/typings/app.d.ts
vendored
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user