@@ -73,7 +73,7 @@ export default new Vuex.Store({
if (pages.length) {
currPage = pages[pages.length - 1];
}
- if (res.idNo && currPage.route !== 'pages/home') {
+ if (res.idNo && currPage.route == 'pages/login') {
wx.switchTab({
url: '/pages/home'
});