diff --git a/package.json b/package.json index 17c4e73c..733436ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-admin", - "version": "1.2.0", + "version": "1.2.2", "homepage": "https://github.com/suyuan32/simple-admin-backend-ui", "bugs": { "url": "https://github.com/suyuan32/simple-admin-backend-ui/issues" diff --git a/src/api/fms/file.ts b/src/api/fms/file.ts index 6b1b2149..7a8c4198 100644 --- a/src/api/fms/file.ts +++ b/src/api/fms/file.ts @@ -34,8 +34,14 @@ export function uploadApi( * @description: Get file list */ -export const getFileList = (params: BaseListReq) => { - return defHttp.post>({ url: Api.GetFileList, params }); +export const getFileList = (params: BaseListReq, mode: ErrorMessageMode = 'notice') => { + return defHttp.post>( + { url: Api.GetFileList, params }, + { + errorMessageMode: mode, + successMessageMode: 'none', + }, + ); }; /** diff --git a/src/locales/lang/zh-CN/sys.ts b/src/locales/lang/zh-CN/sys.ts index a1d3b54c..aa80a8d2 100644 --- a/src/locales/lang/zh-CN/sys.ts +++ b/src/locales/lang/zh-CN/sys.ts @@ -165,21 +165,21 @@ export default { }, apis: { // noun - apiList: 'API列表', + apiList: '接口列表', path: '路径', description: '描述', method: '方法', group: '分组', // action - addApi: '添加API', - editApi: '编辑API', + addApi: '添加接口', + editApi: '编辑接口', // help message - isRequiredHelpMessage: '是否为必要API,如果是必要API,则在权限管理时为必选,不允许取消', + isRequiredHelpMessage: '是否为必要接口,如果是必要接口,则在权限管理时为必选,不允许取消', }, authority: { authorityManagement: '权限管理', menuAuthority: '菜单', - apiAuthority: 'API', + apiAuthority: '接口', }, user: { // noun diff --git a/src/views/dashboard/workbench/components/data.ts b/src/views/dashboard/workbench/components/data.ts index 86e176f6..2eac0c8e 100644 --- a/src/views/dashboard/workbench/components/data.ts +++ b/src/views/dashboard/workbench/components/data.ts @@ -52,5 +52,5 @@ export const navItems: NavItem[] = [ export const systemInfoData = [ ['sys.sys.Name', 'Simple Admin'], - ['sys.sys.version', 'V 1.2.0'], + ['sys.sys.version', 'V 1.2.2'], ];