zhaoxiaohai 2 лет назад
Родитель
Сommit
466798cd2f
3 измененных файлов с 6 добавлено и 6 удалено
  1. 3 3
      pages/teams/addRole.js
  2. 2 2
      pages/teams/addUsers.js
  3. 1 1
      pages/teams/index.js

+ 3 - 3
pages/teams/addRole.js

@@ -65,7 +65,7 @@ Page({
         }).then(res => {
             console.log("应用列表", res)
             if (res.msg != '成功') return wx.showToast({
-                title: res.data,
+                title: res.msg,
                 icon: "none"
             })
             this.setData({
@@ -98,7 +98,7 @@ Page({
                 loading: false
             })
             if (res.msg != '成功') return wx.showToast({
-                title: res.data,
+                title: res.msg,
                 icon: "none"
             })
             this.setData({
@@ -135,7 +135,7 @@ Page({
                         }
                     }).then(res => {
                         if (res.msg != '成功') return wx.showToast({
-                            title: res.data,
+                            title: res.msg,
                         });
                         that.navBack('删除成功');
                     })

+ 2 - 2
pages/teams/addUsers.js

@@ -85,7 +85,7 @@ Page({
         }).then(res => {
             console.log("角色列表", res)
             if (res.msg != '成功') return wx.showToast({
-                title: res.data,
+                title: res.msg,
                 icon: "none"
             })
             this.setData({
@@ -127,7 +127,7 @@ Page({
                 loading: false
             })
             if (res.msg != '成功') return wx.showToast({
-                title: res.data,
+                title: res.msg,
                 icon: "none"
             })
 

+ 1 - 1
pages/teams/index.js

@@ -57,7 +57,7 @@ Page({
             console.log("列表", res)
             this.selectComponent('#ListBox').RefreshToComplete();
             if (res.msg != '成功') return wx.showToast({
-                title: res.data,
+                title: res.msg,
                 icon: "none"
             })
             if (this.data.butText == '账号') {