Skip to content

Commit 13654d2

Browse files
authored
fix: auto-jump没有正确重置时间 (#501)
1 parent 55ec1bf commit 13654d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lin/util/auto-jump.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
import store from '@/store'
55
import Config from '@/config'
66

7-
export default router => {
8-
let timer
97

8+
let timer
9+
10+
export default router => {
1011
if (timer) clearTimeout(timer)
1112
if (!Config.openAutoJumpOut) return
1213
if (router?.currentRoute.value.path === '/' || router?.currentRoute.value.path === '/login') {

0 commit comments

Comments
 (0)