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