|
|
@@ -39,10 +39,12 @@ const Bind = () => {
|
|
|
});
|
|
|
};
|
|
|
const goRedirect = () => {
|
|
|
- const url = window.location.href.split('redirect=')?.[1];
|
|
|
- console.log(url);
|
|
|
- if (url) {
|
|
|
- window.location.href = url;
|
|
|
+ const urlParams = new URLSearchParams(window.location.hash);
|
|
|
+ const redirectUrl = urlParams.get('redirect');
|
|
|
+ // const url = window.location.href.split('redirect=')?.[1];
|
|
|
+ console.log(redirectUrl);
|
|
|
+ if (redirectUrl) {
|
|
|
+ window.location.href = redirectUrl;
|
|
|
}
|
|
|
};
|
|
|
|