update: 社交授权成功后延迟跳转到首页

This commit is contained in:
dap
2025-11-10 11:03:50 +08:00
parent 1e853b7347
commit eb2e2c6f15

View File

@@ -63,7 +63,9 @@ onMounted(async () => {
if (accessStore.accessToken) {
await authCallback(data);
message.success(`${source}授权成功`);
router.push(preferences.app.defaultHomePath);
setTimeout(() => {
router.push(preferences.app.defaultHomePath);
}, 1500);
} else {
// 这里内部已经做了跳转到首页的操作
await authStore.authLogin(data as any);