@@ -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) {