feat: add useCrudSchemas hook

This commit is contained in:
陈凯龙
2022-04-26 15:03:48 +08:00
parent ab0f59ac91
commit 00d947e2f8
11 changed files with 468 additions and 162 deletions

13
src/api/common/index.ts Normal file
View File

@@ -0,0 +1,13 @@
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' })
}