mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-17 05:41:10 -05:00
🐛 fix(third-party-accounts): Update redirect property name in binding response handling
This commit is contained in:
parent
1841552b1b
commit
012e83a25c
@ -220,7 +220,7 @@ export default function ThirdPartyAccounts() {
|
|||||||
method: account.id,
|
method: account.id,
|
||||||
redirect: `${window.location.origin}/bind/${account.id}`,
|
redirect: `${window.location.origin}/bind/${account.id}`,
|
||||||
});
|
});
|
||||||
if (res.data?.data?.url) {
|
if (res.data?.data?.redirect) {
|
||||||
window.location.href = res.data.data.redirect;
|
window.location.href = res.data.data.redirect;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -246,8 +246,9 @@ export default function ThirdPartyAccounts() {
|
|||||||
break;
|
break;
|
||||||
case 'mobile':
|
case 'mobile':
|
||||||
displayValue =
|
displayValue =
|
||||||
`${method?.area_code || ''}${method?.auth_identifier || ''}` ||
|
method?.area_code && method?.auth_identifier
|
||||||
t(`${account.id}.description`);
|
? `${method?.area_code || ''} ${method?.auth_identifier || ''}`
|
||||||
|
: t(`${account.id}.description`);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
displayValue = method?.auth_identifier || t(`${account.id}.description`);
|
displayValue = method?.auth_identifier || t(`${account.id}.description`);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user