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.

14 lines
290 B
TypeScript

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' })
}