loulijun2021
2023-09-19 6208ba6872cc54ccbd2b2ff3b67a1a2f054af41d
src/permission.js
@@ -19,7 +19,7 @@
  // determine whether the user has logged in
  // const hasToken = getToken()
  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