mirror of
				https://github.com/soybeanjs/soybean-admin.git
				synced 2025-11-04 07:43:42 +08:00 
			
		
		
		
	fix(projects): request modal title use i18n. fixed #507
This commit is contained in:
		@@ -23,6 +23,7 @@ const local: App.I18n.Schema = {
 | 
				
			|||||||
    deleteSuccess: 'Delete Success',
 | 
					    deleteSuccess: 'Delete Success',
 | 
				
			||||||
    confirmDelete: 'Are you sure you want to delete?',
 | 
					    confirmDelete: 'Are you sure you want to delete?',
 | 
				
			||||||
    edit: 'Edit',
 | 
					    edit: 'Edit',
 | 
				
			||||||
 | 
					    error: 'Error',
 | 
				
			||||||
    index: 'Index',
 | 
					    index: 'Index',
 | 
				
			||||||
    keywordSearch: 'Please enter keyword',
 | 
					    keywordSearch: 'Please enter keyword',
 | 
				
			||||||
    logout: 'Logout',
 | 
					    logout: 'Logout',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,6 +23,7 @@ const local: App.I18n.Schema = {
 | 
				
			|||||||
    deleteSuccess: '删除成功',
 | 
					    deleteSuccess: '删除成功',
 | 
				
			||||||
    confirmDelete: '确认删除吗?',
 | 
					    confirmDelete: '确认删除吗?',
 | 
				
			||||||
    edit: '编辑',
 | 
					    edit: '编辑',
 | 
				
			||||||
 | 
					    error: '错误',
 | 
				
			||||||
    index: '序号',
 | 
					    index: '序号',
 | 
				
			||||||
    keywordSearch: '请输入关键词搜索',
 | 
					    keywordSearch: '请输入关键词搜索',
 | 
				
			||||||
    logout: '退出登录',
 | 
					    logout: '退出登录',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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.error'),
 | 
				
			||||||
          content: response.data.msg,
 | 
					          content: response.data.msg,
 | 
				
			||||||
          positiveText: $t('common.confirm'),
 | 
					          positiveText: $t('common.confirm'),
 | 
				
			||||||
          maskClosable: false,
 | 
					          maskClosable: false,
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								src/typings/app.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								src/typings/app.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -273,6 +273,7 @@ declare namespace App {
 | 
				
			|||||||
        deleteSuccess: string;
 | 
					        deleteSuccess: string;
 | 
				
			||||||
        confirmDelete: string;
 | 
					        confirmDelete: string;
 | 
				
			||||||
        edit: string;
 | 
					        edit: string;
 | 
				
			||||||
 | 
					        error: string;
 | 
				
			||||||
        index: string;
 | 
					        index: string;
 | 
				
			||||||
        keywordSearch: string;
 | 
					        keywordSearch: string;
 | 
				
			||||||
        logout: string;
 | 
					        logout: string;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user