gohttpdUi/src/api/common/index.ts

14 lines
290 B
TypeScript
Raw Normal View History

2022-04-26 15:03:48 +08:00
import { useAxios } from '@/hooks/web/useAxios'
const request = useAxios()
// 获取所有字典
export const getDictApi = () => {
return request.get({ url: '/dict/list' })
}
// 模拟获取某个字典
export const getDictOneApi = () => {
return request.get({ url: '/dict/one' })
}