loulijun2021
2022-12-08 240971a1724059e47de19719e0183719d2a7c62e
src/permission.js
@@ -19,8 +19,7 @@
  // determine whether the user has logged in
  // const hasToken = getToken()
  // const hasToken = getCookie('admin')
  const hasToken = store.state.app.isGoToIndex
  const hasToken = getCookie('admin')
  if (hasToken) {
    if (to.path === '/login') {
      // if is logged in, redirect to the home page