Browse Source

数据类型错误

mayday 2 years ago
parent
commit
d153031f86
1 changed files with 1 additions and 1 deletions
  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){