在nuxt的项目中,引用了ESlint写了一个方法constf=function(val,sval){if(val==='A'||val==='B'){return'传染病和寄生虫病';}if(val==='C'){return'肿瘤';}if(val==='D'&&sval<5){return'肿瘤';}if(val==='D'){return'血液及造血器官疾病';}if(val==='E'){return'内分泌营养代谢疾病';}if(val==='F'){return'精神和行为疾患';}if(val==='G'){return'神经系统疾病';}if(val==='I'){return'循环系统疾病';}if(val==='J'){return'呼吸系统疾病';}if(val==='K'){return'消化系统疾病';}}提示错误Expectedtoreturnavalueattheendoffunction怎么改
叮当猫咪
相关分类