修改登录页面链接对应的登录页和点击登录页的蓝狐代理跳转首页,未登录点击菜单栏产品订购里的导航页面校验

This commit is contained in:
Eamon-meng
2025-08-13 14:26:40 +08:00
parent 2242275e84
commit 13708483fc
3 changed files with 28 additions and 18 deletions

View File

@@ -18,9 +18,9 @@ export default function Purchase(props: PurchaseProps) {
const router = useRouter()
useEffect(() => {
setCurrentTab(props.defaultType)
if (!profile) {
router.push('/login?redirect=/admin/purchase') // 未登录用户重定向到登录页
}
// if (!profile) {
// router.push('/login?redirect=/admin/purchase') // 未登录用户重定向到登录页
// }
}, [props.defaultType, profile, router])
return (