From afa0ffca1673eb61c27496b9988fa8559678bd94 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 23 九月 2025 16:55:15 +0800
Subject: [PATCH] gx用户管理

---
 src/router/index.ts |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index e33cef8..ad85cdc 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -92,13 +92,14 @@
 
 // 路由加载前
 router.beforeEach(async (to, from, next) => {
+	console.log('to', to);
 	NProgress.configure({ showSpinner: false });
 	if (to.meta.title) NProgress.start();
 	const token = Session.get('token');
 	if (to.path === '/login' && !token) {
 		next();
 		NProgress.done();
-	}else if (to.path === '/tiaochabiao1' && !token) {
+	}else if ((to.path === '/register'||to.path==='/registerSuu') && !token) {
 		next();
 		NProgress.done();
 	}

--
Gitblit v1.8.0