zangkai 5 жил өмнө
parent
commit
68b634d1e0

+ 2 - 9
frontend_web/src/plugin/axios/index.js

@@ -16,18 +16,11 @@ function errorCreate (msg) {
 
 // 反馈消息弹框提示
 function noticeMsg (dataAxios, type) {
-  let msg
-  if (dataAxios.msg) {
-    msg = dataAxios.msg
-  }
-  if (dataAxios.message) {
-    msg = dataAxios.message
-  }
-  if (!msg) {
+  if (!dataAxios.msg) {
     return
   }
   Message({
-    message: msg,
+    message: dataAxios.msg,
     type: type,
     duration: 3 * 1000
   })