lanjianrong 3 years ago
parent
commit
6bd48a49e8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/FileModal/index.tsx

+ 2 - 2
src/components/FileModal/index.tsx

@@ -102,8 +102,8 @@ export default function FileModal(props: iFileModalProps) {
         message.error("获取签名失败,请联系管理员")
 
       }
-    } catch (error) {
-      error && message.error(error.toString())
+    } catch (error: any) {
+      message.error(error)
     }
   }