zhangdan 4 years ago
parent
commit
3fb9d72075
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/Order/OrderCenter.vue

+ 6 - 2
src/views/Order/OrderCenter.vue

@@ -230,7 +230,9 @@
         }).then(res => {
           // console.log(res, '-----------')
           if (res.status == 200) {
-            this.itemOptionData = res.data.list
+            this.itemOptionData = res.data.list || []
+          }else{
+            this.itemOptionData = []
           }
         })
       },
@@ -242,7 +244,9 @@
         }).then(res => {
           // console.log(res, '-----------')
           if (res.status == 200) {
-            this.storeOptionData = res.data.list
+            this.storeOptionData = res.data.list || []
+          }else{
+            this.storeOptionData = []
           }
         })
       },