Skip to content

Commit 3264a52

Browse files
authored
fix:video preview page manually select video navigate error (#43)
1 parent e7f49f2 commit 3264a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/useRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const useRouter = () => {
3131
navigate(path, options)
3232
},
3333
replace: (to: string) => {
34-
const path = encodePath(pathJoin(pathDir(location.pathname), to), true)
34+
const path = encodePath(pathJoin(pathDir(pathname()), to), true)
3535
clearHistory(decodeURIComponent(path))
3636
navigate(path)
3737
},

0 commit comments

Comments
 (0)