zs %!s(int64=3) %!d(string=hai) anos
pai
achega
11c7a53100
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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 })
         }
         }
       }
       }
     })
     })