mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2025-12-30 09:42:25 +00:00
update: 社交授权成功后延迟跳转到首页
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user