feat(rewrite): support micro frontend
This commit is contained in:
@@ -86,7 +86,8 @@ export default function AppLayout({
|
||||
e.preventDefault()
|
||||
if (activeHeaderMenu?.url === item.url) return
|
||||
let toPathname = menuDefaultRouter[`/${item.url}`] || `/${item.url}`
|
||||
router.push(toPathname)
|
||||
window.location.href = toPathname
|
||||
// router.replace(toPathname)
|
||||
}}>
|
||||
<ClientIcon icon={item.icon} style={{ width: "1rem", height: "1rem" }} />
|
||||
{item.title}
|
||||
|
||||
Reference in New Issue
Block a user