Browse Source

'202203091410'

fanghuisheng 3 years ago
parent
commit
68fe4bc5bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

@@ -75,7 +75,7 @@ router.beforeEach((to, from, next) => {
     } else {
         document.getElementById('routers').style.display = "block"
         //路由的next必须存在,否则无法进入下一页
-        if (localStorage.getItem('accessToken') === null) {
+        if (localStorage.getItem('accessToken') != null) {
             next({ path: '/home' })
         } else {
             next()