|
@ -108,14 +108,21 @@ Page({ |
|
|
wx.reLaunch({ |
|
|
wx.reLaunch({ |
|
|
url: '/pages/login/login' |
|
|
url: '/pages/login/login' |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
const userRole = wx.getStorageSync('userRole'); |
|
|
|
|
|
if (userRole && userRole.includes('管理')) { |
|
|
|
|
|
wx.reLaunch({ |
|
|
|
|
|
url: '/pages/home/home' |
|
|
|
|
|
}); |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
this.getData(); |
|
|
this.getData(); |
|
|
if (typeof this.getTabBar === 'function' && this.getTabBar()) { |
|
|
if (typeof this.getTabBar === 'function' && this.getTabBar()) { |
|
|
this.getTabBar().setData({ |
|
|
this.getTabBar().setData({ |
|
|
selected: 0 |
|
|
selected: 0 |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|