We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7360bf commit 03899a2Copy full SHA for 03899a2
src/lin/plugin/auto-jump.js
@@ -2,15 +2,13 @@
2
import Vue from 'vue'
3
import Config from '@/config'
4
import store from '@/store'
5
+import router from '@/router'
6
7
const Plugin = {
8
install(vue) {
- // eslint-disable-next-line
9
vue.prototype.$_lin_jump = () => {
10
- // eslint-disable-line
11
- if (!Config.openAutoJumpOut) {
12
- return
13
- }
+ if (router.currentRoute.path === '/' || router.currentRoute.path === '/login' || !Config.openAutoJumpOut) return
+
14
clearTimeout(this.timer)
15
this.timer = setTimeout(() => {
16
store.dispatch('loginOut')
0 commit comments