优化写法:areaOptionsvalueforEachitem = if itemareaCode == formareaCode paramsareaName = itemareaName; ;让代码更短
params.areaName = areaOptions.value.find(item => item.areaCode == form.areaCode)?.areaName;
原文地址: https://www.cveoy.top/t/topic/iGCw 著作权归作者所有。请勿转载和采集!