From 02932a8d6ed14f2dab84449c1903eaa8f3c4ae07 Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Wed, 15 Sep 2021 15:05:48 +0800 Subject: [PATCH] autoLogin --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 780df24..26dbfb0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -52,7 +52,7 @@ const router = new Router({ router.beforeEach((to, from, next) => { if (to.name === 'autoLogin') { let sec = (parseInt(to.query._t) - new Date().getTime()) - if (to.query._t === undefined || sec > 1500 || sec < -1500) { + if (to.query._t === undefined || sec > 10000 || sec < -10000) { return next({ name: 'login' }) } }