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