修复 登录问题

This commit is contained in:
ivamp 2024-10-13 21:08:02 +08:00
parent dbbba63746
commit 81a5e85a3a

View File

@ -23,6 +23,11 @@ axios.get(config.oauth_discovery_url).then((discovery) => {
const code: any = router.currentRoute.value.query.code;
if (!code) {
// console.log(" url code")
return;
}
// code
const q = new URLSearchParams({
client_id: config.oauth_client_id,
@ -43,7 +48,7 @@ axios.get(config.oauth_discovery_url).then((discovery) => {
r.data.id_token,
r.data.access_token,
r.data.refresh_token,
r.data.expires_in,
r.data.expires_in
);
})
.catch((e) => {