From 9b6dc3e8447fccd337394ce811827e45eb6fd2a4 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期二, 27 六月 2023 08:33:06 +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