valentichu преди 1 година
родител
ревизия
e763930d01
променени са 3 файла, в които са добавени 0 реда и са изтрити 5 реда
  1. 0 0
      lib/index.js
  2. 0 3
      src/pages/Alarm/components/complex.jsx
  3. 0 2
      src/pages/Alarm/components/easy.jsx

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
lib/index.js


+ 0 - 3
src/pages/Alarm/components/complex.jsx

@@ -105,7 +105,6 @@ const Complex = (props, ref) => {
 
       const { state } = await API2.addRule(obj);
       if (state === 0) {
-        message.success("保存成功");
         props.onConfirm();
       }
     } else {
@@ -119,12 +118,10 @@ const Complex = (props, ref) => {
       };
       const { state } = await API2.editRule(obj);
       if (state === 0) {
-        message.success("保存成功");
         props.onConfirm(data.id);
       }
     }
     form.resetFields();
-    props.onConfirm();
   });
 
   useImperativeHandle(ref, () => {

+ 0 - 2
src/pages/Alarm/components/easy.jsx

@@ -140,7 +140,6 @@ const Easy = (props, ref) => {
       API2.addRule(obj)
         .then((res) => {
           if (res?.state === 0) {
-            message.success("保存成功");
             form.resetFields();
             props.onConfirm();
           }
@@ -230,7 +229,6 @@ const Easy = (props, ref) => {
       API2.editRule(obj)
         .then((res) => {
           if (res?.state === 0) {
-            message.success("保存成功");
             form.resetFields();
             props.onConfirm();
           }

Някои файлове не бяха показани, защото твърде много файлове са промени