Browse Source

success 放 else

visuddhinanda 3 years ago
parent
commit
3e309fd22d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dashboard/src/components/admin/relation/DataImport.tsx

+ 3 - 1
dashboard/src/components/admin/relation/DataImport.tsx

@@ -69,8 +69,10 @@ const Widget = ({
               title: "error",
               title: "error",
               content: `成功${res.data.success}-失败${res.data.fail}\n${res.message}`,
               content: `成功${res.data.success}-失败${res.data.fail}\n${res.message}`,
             });
             });
+          } else {
+            message.success(`成功导入${res.data.success}`);
           }
           }
-          message.success(`成功导入${res.data.success}`);
+
           if (typeof onSuccess !== "undefined") {
           if (typeof onSuccess !== "undefined") {
             onSuccess();
             onSuccess();
           }
           }