feat: 封装数据字典

This commit is contained in:
xlsea
2024-09-04 09:11:04 +08:00
parent 0130688265
commit 3d426fb8e1
20 changed files with 421 additions and 24 deletions

View File

@ -0,0 +1,9 @@
import { request } from '@/service/request';
/** 根据字典类型查询字典数据信息 */
export function fetchGetDictDataByType(dictType: string) {
return request<Array<Api.System.DictData>>({
url: `/system/dict/data/type/${dictType}`,
method: 'get'
});
}