Explorar el Código

数据类型错误

mayday hace 2 años
padre
commit
d153031f86
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pages-report/reportList.vue

+ 1 - 1
pages-report/reportList.vue

@@ -234,7 +234,7 @@ export default {
     async getClassifyMenuList(){
       const res=await apiReportClassifyMenuList({classify_id:Number(this.classifyId)})
       if(res.code===200){
-        this.classifyMenuList=res.data
+        this.classifyMenuList=res.data||[]
       }
     },
     handleSelectMenu(item){