菜单需要排除的路由

This commit is contained in:
孙景学
2025-08-05 14:46:47 +08:00
parent 15a5ae851b
commit 9c8a7f8cd5

View File

@ -156,7 +156,7 @@ const TabModel: TabModelType = {
return history.listen((location) => { return history.listen((location) => {
const { pathname } = location; const { pathname } = location;
// 需要排除的路由 // 需要排除的路由
const excludeRoutes = ['/login', '/register']; const excludeRoutes = ['/login', '/register', '/register/supplier'];
// 首页特殊处理 // 首页特殊处理
if (pathname === '/') { if (pathname === '/') {