Ver código fonte

核保试上传影像失败后loading按钮恢复

祁鹏飞 1 mês atrás
pai
commit
3d7f6d1e08
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7 1
      src/views/insurancePolicy/modules/underwriting.vue

+ 7 - 1
src/views/insurancePolicy/modules/underwriting.vue

@@ -365,6 +365,12 @@ const handleSubmit = (bool) => {
             totalPriceCount: totalPriceCount.value
           })
         }).finally(() => (loading.value = false, emit('initDetail')))
+      }else{
+        ElMessage({
+          message: res1.msg,
+          type: 'warning'
+        })
+        loading.value = false
       }
     }).catch(() => loading.value = false)
   } else {
@@ -600,4 +606,4 @@ defineExpose({
     margin-right: 10px;
   }
 }
-</style>
+</style>