import { listDictDataAll } from '@/api/dict' import { ref } from 'vue' export const getDictOptions = (dictType) => { const result = ref([]) listDictDataAll(dictType).then(data => { result.value = data }) return result; }