Browse Source

选择编辑接口报错时添加catch

xiebeibei 4 năm trước cách đây
mục cha
commit
d4bd0b4651
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/components/edit/attr_select.vue

+ 3 - 0
src/components/edit/attr_select.vue

@@ -645,6 +645,9 @@ export default {
         } else {
           this.$message.error("工程信息化中的设备信息获取失败");
         }
+      }).catch(()=>{
+        this.spinning = false;
+        this.$message.error("工程信息化中的设备信息获取失败");
       });
       // }
       console.log(this.attrCards);