From 18dd68edd5848638bafc8402da423a660b48e4da Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期三, 21 六月 2023 17:03:26 +0800
Subject: [PATCH] fix 修复 三方调用跳转白屏问题(临时修复)
---
src/layout/components/SocialLogin/index.vue | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/layout/components/SocialLogin/index.vue b/src/layout/components/SocialLogin/index.vue
index fad8286..127007b 100644
--- a/src/layout/components/SocialLogin/index.vue
+++ b/src/layout/components/SocialLogin/index.vue
@@ -22,13 +22,13 @@
.then(async (res) => {
if (res.code !== 200) {
ElMessage.error(res.msg);
- router.go(-2);
+ location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index';
return;
}
loading.value = false;
setToken(res.msg);
ElMessage.success('鐧诲綍鎴愬姛');
- router.go(-2);
+ location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index';
})
.catch(() => {
loading.value = false;
--
Gitblit v1.9.3