mirror of
https://github.com/woodchen-ink/Q58Connect.git
synced 2025-07-18 14:01:55 +08:00
简化一点
This commit is contained in:
parent
64dc17005f
commit
ecf9ba5623
@ -143,12 +143,6 @@ export async function handleAuthorizeAction(
|
|||||||
const oauthParams = new URLSearchParams(atob(oauth));
|
const oauthParams = new URLSearchParams(atob(oauth));
|
||||||
const redirectUrl = getAuthorizeUrl(oauthParams);
|
const redirectUrl = getAuthorizeUrl(oauthParams);
|
||||||
|
|
||||||
// 刷新相关页面
|
|
||||||
revalidatePath("/dashboard");
|
|
||||||
revalidatePath(`/dashboard/clients/${clientId}`);
|
|
||||||
revalidatePath("/admin/clients");
|
|
||||||
revalidatePath(`/admin/clients/${clientId}`);
|
|
||||||
|
|
||||||
return { redirectUrl };
|
return { redirectUrl };
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("授权处理失败:", error);
|
console.error("授权处理失败:", error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user