From 343d01a16ff6817941a84fd73c66e0e70488448e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Sun, 1 May 2022 17:05:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/layout/components/Navbar.vue | 3 ++- src/views/login/components/login.vue | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue index 9c5c5e2f..63b4b100 100644 --- a/src/views/layout/components/Navbar.vue +++ b/src/views/layout/components/Navbar.vue @@ -223,7 +223,8 @@ export default { }, logout() { this.$store.dispatch('LogOut').then(() => { - location.reload()// In order to re-instantiate the vue-router object to avoid bugs + //location.reload()// In order to re-instantiate the vue-router object to avoid bugs + this.$router.push({path:'/login'}) }) }, showSelectShopMethod() { diff --git a/src/views/login/components/login.vue b/src/views/login/components/login.vue index 1b4746da..38054d5f 100644 --- a/src/views/login/components/login.vue +++ b/src/views/login/components/login.vue @@ -328,17 +328,18 @@ export default { this.handleLogin(); }, weixinLogin(){ + var mdpRedirectUri="https://www.qingqinkj.com/xm/m1/" getTpaState().then(res=>{ var tips = res.data.tips; if(tips.isOk){ this.wxLoginCodeVisible=true; var state=res.data.data var obj = new WxLogin({ - self_redirect:true, + self_redirect:false, id:"login_container", appid: "wx2671d5db8346b6fc", scope: "snsapi_login", - redirect_uri: encodeURIComponent("https://www.maimengcloud.com/api/m1/tpa/login/token?authType=wechat_wxpub&authId=mmxmcloud_wxopen_pc"), + redirect_uri: encodeURIComponent("https://www.maimengcloud.com/api/m1/tpa/login/token?authType=wechat_wxpub&authId=mmxmcloud_wxopen_pc&redirectUri="+mdpRedirectUri), state: state, style: "", href: ""