index.ts 260 B

1234567891011
  1. import request from '@/axios'
  2. // 获取所有字典
  3. export const getDictApi = () => {
  4. return request.get({ url: '/mock/dict/list' })
  5. }
  6. // 模拟获取某个字典
  7. export const getDictOneApi = async () => {
  8. return request.get({ url: '/mock/dict/one' })
  9. }