lange hace 5 años
padre
commit
cc36bdb00b
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      whepi-ui/templates/home/ribao.js

+ 2 - 1
whepi-ui/templates/home/ribao.js

@@ -631,7 +631,8 @@ function addReport() {
     },
     success: function (data) {
       $.toast(data.msg);
-      document.getElementById("btn_shangbao").style['background-color'] = "#D9D9D9";
+      if (data.msg == "操作成功")
+        document.getElementById("btn_shangbao").style['background-color'] = "#D9D9D9";
     },
   });
 }