useDictionary.ts 236 B

12345678910111213
  1. import { dictList } from '@/api/system/dictionary';
  2. export function useDictionary() {
  3. async function getDictTypeList(params) {
  4. const result = await dictList(params);
  5. return result;
  6. }
  7. return {
  8. getDictTypeList,
  9. };
  10. }