From 1e853b7347dfd983189ec12a9b5211733642c5c2 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Mon, 10 Nov 2025 10:53:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=88=E6=9D=83=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E5=90=8E=E8=B7=B3=E8=BD=AC=E5=88=B0=E9=BB=98=E8=AE=A4=E9=A6=96?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在社交授权回调处理完成后,新增路由跳转逻辑,将用户重定向到系统配置的默认首页路径。 --- apps/web-antd/src/views/_core/social-callback/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web-antd/src/views/_core/social-callback/index.vue b/apps/web-antd/src/views/_core/social-callback/index.vue index 59a8548a..5adaf567 100644 --- a/apps/web-antd/src/views/_core/social-callback/index.vue +++ b/apps/web-antd/src/views/_core/social-callback/index.vue @@ -5,6 +5,7 @@ import { onMounted } from 'vue'; import { useRoute, useRouter } from 'vue-router'; import { DEFAULT_TENANT_ID, LOGIN_PATH } from '@vben/constants'; +import { preferences } from '@vben/preferences'; import { useAccessStore } from '@vben/stores'; import { cn } from '@vben/utils'; @@ -62,6 +63,7 @@ onMounted(async () => { if (accessStore.accessToken) { await authCallback(data); message.success(`${source}授权成功`); + router.push(preferences.app.defaultHomePath); } else { // 这里内部已经做了跳转到首页的操作 await authStore.authLogin(data as any);