Skip to content

Commit 3a79219

Browse files
authored
fix: Routing history judgment problem (#71)
1 parent 407689a commit 3a79219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/NavBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const route = useRoute()
33
const router = useRouter()
44
55
function onBack() {
6-
if (history.length > 1)
6+
if (window.history.state.back)
77
history.back()
88
else
99
router.replace('/')

0 commit comments

Comments
 (0)