import api from "@/axios"; type DictType = 'CheckStatus' | 'DeleteFlag' | 'IsEnable' | 'IsOrNot' | 'Sex' export const initEnums = () => { api.get[]>>('/common/enums').then(resp => { sessionStorage.setItem('dictMap', JSON.stringify(resp.data)) }) } export const dictSelectNodes = (enumType: DictType): SelectNodeVo[] => JSON.parse(sessionStorage.getItem('dictMap') as string)?.[enumType] || []