fix: 🐛

This commit is contained in:
codytseng
2025-01-17 23:11:27 +08:00
parent ed2a21a51f
commit b2f111a4e7
4 changed files with 19 additions and 4 deletions

View File

@@ -275,7 +275,7 @@ function isCurrentPage(stack: TStackItem[], url: string) {
}
function findAndCreateComponent(url: string, index: number) {
const path = url.split('?')[0]
const path = url.split('?')[0].split('#')[0]
for (const { matcher, element } of routes) {
const match = matcher(path)
if (!match) continue