loulijun2021
2023-02-14 08ef25f20c5422734cfa5495a21a8a12073d0408
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