zhaoxiaohai 3 years ago
parent
commit
c6507a8974
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/tabbar/mine/index.js

+ 1 - 1
pages/tabbar/mine/index.js

@@ -18,7 +18,7 @@ Page({
     onLoad(options) {
         this.queryUserMsg();
         let authlist = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ['通用'], ['个人中心']);
-        if (authlist) {
+        if (authlist.length) {
             let pathList = this.data.pathList;
             authlist[0].apps.forEach(v => {
                 switch (v.name) {