1
jhzh
2025-08-26 42568bdd99cfaadd3f8d9059e5166e2e0b2b26d0
src/main.js
@@ -138,7 +138,8 @@
  document.title = to.meta.title;
  console.log(store.state, "store.state", !!store.state.token);
  if (to.meta.requireAuth && !!!store.state.token) {
    next("/login");
    // next("/login");
    //点击管理后台分享的二维码 进入注册页面 会识别未登录 导致进入登录页面
  }
  // if (!to.query.url && from.query.url) {
  //   to.query.url = from.query.url