fix(projects): request modal title use i18n. fixed #507

This commit is contained in:
Soybean 2024-06-20 19:15:46 +08:00
parent c7f6f2a537
commit f7de3fd0f1
4 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,7 @@ const local: App.I18n.Schema = {
deleteSuccess: 'Delete Success',
confirmDelete: 'Are you sure you want to delete?',
edit: 'Edit',
error: 'Error',
index: 'Index',
keywordSearch: 'Please enter keyword',
logout: 'Logout',

View File

@ -23,6 +23,7 @@ const local: App.I18n.Schema = {
deleteSuccess: '删除成功',
confirmDelete: '确认删除吗?',
edit: '编辑',
error: '错误',
index: '序号',
keywordSearch: '请输入关键词搜索',
logout: '退出登录',

View File

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

View File

@ -273,6 +273,7 @@ declare namespace App {
deleteSuccess: string;
confirmDelete: string;
edit: string;
error: string;
index: string;
keywordSearch: string;
logout: string;