panhui 3 tahun lalu
induk
melakukan
6cae30bd6d
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/store/index.js

+ 1 - 1
src/store/index.js

@@ -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'
                         });