zs 3 gadi atpakaļ
vecāks
revīzija
11c7a53100
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 },
       success(res) {
         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 },
       success(res) {
         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 })
         }
       }
     })