loulijun2021
2023-03-20 553a49231b84b01278e762a72bc78b2c26507ef1
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