From 8e7cd003414ea4ca8f42fb3171de18f8839ece17 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期一, 10 七月 2023 18:04:27 +0800 Subject: [PATCH] 登录页面和查询分类设置 --- src/router/index.js | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 6effbfa..ed7b15b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -83,4 +83,21 @@ const router = createRouter() +// router.beforeEach((to, from, next) => { +// must call `next` +// console.log(to, from) +// if (to.path === "/custom/salesLead") { +// next() +// } else { +// if (to.meta.requireAuth) { +// next({ +// path: "/login", +// query: { redirect: to.fullPath } +// }) +// } else { +// next() +// } +// } +// }) + export default router -- Gitblit v1.8.0