zangkai 5 年 前
コミット
68b634d1e0
1 ファイル変更2 行追加9 行削除
  1. 2 9
      frontend_web/src/plugin/axios/index.js

+ 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
   })