From 2576e0e2c387df67baf0c0cd0e49e27e161c74e5 Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 10 Mar 2021 17:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=95=E8=8E=B7=E8=B7=AF=E7=94=B1=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=BC=82=E5=B8=B8=20=E4=B8=8D=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epmet-oper-web/src/views/pages/login.vue | 2 +- epmet-oper-web/src/views/pages/loginWork.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-oper-web/src/views/pages/login.vue b/epmet-oper-web/src/views/pages/login.vue index 0a85fc9..0532f0a 100644 --- a/epmet-oper-web/src/views/pages/login.vue +++ b/epmet-oper-web/src/views/pages/login.vue @@ -146,7 +146,7 @@ export default { } localStorage.setItem('userType', 'oper') Cookies.set('token', res.data.token) - this.$router.replace({ name: 'home' }) + this.$router.replace({ name: 'home' }).catch(()=>{}) }).catch(() => { }) }) }, 1000, { 'leading': true, 'trailing': false }) diff --git a/epmet-oper-web/src/views/pages/loginWork.vue b/epmet-oper-web/src/views/pages/loginWork.vue index 3ac5bc8..e90d9da 100644 --- a/epmet-oper-web/src/views/pages/loginWork.vue +++ b/epmet-oper-web/src/views/pages/loginWork.vue @@ -297,7 +297,7 @@ export default { localStorage.setItem('userType', 'work') Cookies.set('token', res.data.token) - this.$router.replace({ name: 'home' }) + this.$router.replace({ name: 'home' }).catch(()=>{}) }).catch(() => { }) this.endLoading()