From a6ae98f2849266a10b2f5fbecfe1d229ed1dea2c Mon Sep 17 00:00:00 2001 From: lyt <1105290566@qq.com> Date: Thu, 22 Apr 2021 17:22:24 +0800 Subject: [PATCH] =?UTF-8?q?'admin-21.04.22:=E9=83=A8=E5=88=86=E7=94=B5?= =?UTF-8?q?=E8=84=91=E7=99=BB=E5=BD=95=E5=90=8E=E9=A6=96=E5=B1=8F=E5=8D=A1?= =?UTF-8?q?=E6=96=AD=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BD=BF=E7=94=A8location.?= =?UTF-8?q?href=E6=9B=BF=E4=BB=A3router.push'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 4a7bccc..ca7cd73 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -177,7 +177,7 @@ export default { // 存储用户信息到vuex this.$store.dispatch('userInfos/setUserInfos', userInfos); PrevLoading.start(); - this.$router.push('/'); + window.location.href = `${window.location.origin}${window.location.pathname}`; setTimeout(() => { this.$message.success(`${this.currentTime},${this.$t('message.login.signInText')}`); }, 300);