routerfix2
This commit is contained in:
parent
69b2728dc2
commit
8cf45f8750
|
@ -69,7 +69,7 @@ if (!isServer) {
|
|||
onMount(router, () => {
|
||||
router.listen((r) => {
|
||||
resource.set(r.path)
|
||||
const last = resource.get().split('/').pop()
|
||||
const last = resource.get().split('/').pop().split('?').at(0)
|
||||
if (Boolean(last) && router.routes.filter((x) => x[0] === last).length === 0) {
|
||||
slug.set(last || '')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user