13 lines
249 B
TypeScript
13 lines
249 B
TypeScript
import request from '/@/utils/request';
|
|
|
|
/**
|
|
* 根据字典类型获取字典数据
|
|
* @param type 字典类型
|
|
*/
|
|
export const getDictByType = (type: string) => {
|
|
return request({
|
|
url: `/admin/dict/item/type/${type}`,
|
|
method: 'get',
|
|
});
|
|
};
|