zs 3 年 前
コミット
11c7a53100
2 ファイル変更2 行追加2 行削除
  1. 1 1
      pages/administration/index.js
  2. 1 1
      pages/home/index.js

+ 1 - 1
pages/administration/index.js

@@ -94,7 +94,7 @@ Page({
       data: { match_id: e._id },
       data: { match_id: e._id },
       success(res) {
       success(res) {
         if (res.data.errcode == 0) { } else {
         if (res.data.errcode == 0) { } else {
-          wx.showToast({ title: res.data.errmsg, icon: 'none', duration: 2000 })
+          wx.showToast({ title: res.errmsg, icon: 'none', duration: 2000 })
         }
         }
       }
       }
     })
     })

+ 1 - 1
pages/home/index.js

@@ -72,7 +72,7 @@ Page({
       data: { match_id: e._id },
       data: { match_id: e._id },
       success(res) {
       success(res) {
         if (res.data.errcode == 0) { } else {
         if (res.data.errcode == 0) { } else {
-          wx.showToast({ title: res.data.errmsg, icon: 'none', duration: 2000 })
+          wx.showToast({ title: res.errmsg, icon: 'none', duration: 2000 })
         }
         }
       }
       }
     })
     })