Pārlūkot izejas kodu

地接费用填写添加异常处理

yuanrf 11 mēneši atpakaļ
vecāks
revīzija
0a800bc7fe
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      src/components/OP/CarTouristGuideGrounContent.vue

+ 3 - 1
src/components/OP/CarTouristGuideGrounContent.vue

@@ -484,9 +484,11 @@ export default {
                 } else {
                     this.$message.error('初始化失败' + res.data.msg);
                 }
+            }).catch(function (error) {
+                that.$message.error("网络错误,请刷新重试!");
+            }).finally(() => {
                 that.loading = false;
             })
-
         },
         //获取ctable
         PostPageLinkCTable() {