You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
297 B
TypeScript

import request from '@/config/axios'
// 获取所有字典
export const getDictApi = (): Promise<IResponse> => {
return request.get({ url: '/dict/list' })
}
// 模拟获取某个字典
export const getDictOneApi = async (): Promise<IResponse> => {
return request.get({ url: '/dict/one' })
}