mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-27 00:43:23 +08:00
update: 社交授权成功后延迟跳转到首页
This commit is contained in:
@@ -63,7 +63,9 @@ onMounted(async () => {
|
|||||||
if (accessStore.accessToken) {
|
if (accessStore.accessToken) {
|
||||||
await authCallback(data);
|
await authCallback(data);
|
||||||
message.success(`${source}授权成功`);
|
message.success(`${source}授权成功`);
|
||||||
router.push(preferences.app.defaultHomePath);
|
setTimeout(() => {
|
||||||
|
router.push(preferences.app.defaultHomePath);
|
||||||
|
}, 1500);
|
||||||
} else {
|
} else {
|
||||||
// 这里内部已经做了跳转到首页的操作
|
// 这里内部已经做了跳转到首页的操作
|
||||||
await authStore.authLogin(data as any);
|
await authStore.authLogin(data as any);
|
||||||
|
|||||||
Reference in New Issue
Block a user