wenhongquan %!s(int64=3) %!d(string=hai) anos
pai
achega
9207552fe5
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  1. 8 1
      src/views/IncidentManagementReport/index.tsx

+ 8 - 1
src/views/IncidentManagementReport/index.tsx

@@ -75,7 +75,13 @@ export default defineComponent({
 
 
     const handleUpload = (file) => {
+         Toast.loading({
+           message: '上传中...',
+           duration: 0,
+           forbidClick: true,
+         });
       upload(file).then((res) => {
+        Toast.clear();
         let type = /\w+([.jpg|.png|.gif|.swf|.bmp|.jpeg]){1}$/.test(
           res.data.fileName?.substr( res.data.fileName?.lastIndexOf('.') + 1 ) ?? '',
         );
@@ -85,7 +91,8 @@ export default defineComponent({
           imagessrclist.push(res.data);;
         }
 
-      }).catch((error)=>{
+      }).catch((error) => {
+        Toast.clear();
 
       });
     };