修改登录页面链接对应的登录页和点击登录页的蓝狐代理跳转首页,未登录点击菜单栏产品订购里的导航页面校验
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user