Sfoglia il codice sorgente

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

xiebeibei 4 anni fa
parent
commit
d4bd0b4651
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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);