From 8f2c16bbb76d0990cb33b69c29fc0e53a2f8fc0b Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 11 May 2020 21:38:24 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E7=AC=AC=E4=B8=89=E6=96=B9=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=B3=A8=E5=86=8C=E5=90=8E=E5=A2=9E=E5=8A=A0=E9=80=80?= =?UTF-8?q?=E5=87=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/third-register/main.vue | 8 +++++++- src/page/login/thirdlogin.vue | 13 ++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/components/third-register/main.vue b/src/components/third-register/main.vue index 05dac3f..080d54e 100644 --- a/src/components/third-register/main.vue +++ b/src/components/third-register/main.vue @@ -35,6 +35,7 @@ import {registerGuest} from "@/api/user"; import {getTopUrl} from "@/util/util"; import {info} from "@/api/system/tenant"; + import {resetRouter} from "@/router/router"; export default { name: "thirdRegister", @@ -90,7 +91,12 @@ const data = res.data; if (data.success) { this.accountBox = false; - this.$alert("注册申请已提交,请耐心等待管理员通过!", '注册提示') + this.$alert("注册申请已提交,请耐心等待管理员通过!", '注册提示').then(() => { + this.$store.dispatch("LogOut").then(() => { + resetRouter(); + this.$router.push({path: "/login"}); + }); + }) } else { this.$message.error(data.msg || '提交失败'); } diff --git a/src/page/login/thirdlogin.vue b/src/page/login/thirdlogin.vue index dd9fe9b..9c176e2 100644 --- a/src/page/login/thirdlogin.vue +++ b/src/page/login/thirdlogin.vue @@ -1,24 +1,24 @@