export const dictionaryDefine = { //接口参数 : [ '字典数据list名', '字典数据Map名', '字段数据ObjMap名' ], label_type: ['labelTypeList', 'labelTypeMap'], // 标签类型 label_level: ['labelLevelList', 'labelLevelMap'], // 标签层级 } const stateMap = {} Object.keys(dictionaryDefine).map(i => { stateMap[dictionaryDefine[i][0]] = [] stateMap[dictionaryDefine[i][1]] = new Map() }) export const dictionary = stateMap