超算课程判断扩大到域名,且对地址进行解码

This commit is contained in:
谢思 2026-05-27 11:42:16 +08:00
parent c02fcef01b
commit 84a3614818
2 changed files with 6 additions and 6 deletions

View File

@ -56,12 +56,12 @@ function Login(props){
const searchParams = new URLSearchParams(search.substring(1));
const goPage = searchParams.get("go_page");
if(["https://gitlink.educoder.net/paths/z8ag3qtm", "https://gitlink.educoder.net/paths/fyka9x35"].includes(goPage)){
if(goPage.includes("gitlink.educoder.net")){
getCurrentRole(34, 375).finally(()=>{
window.location.href = goPage ? goPage : `/${response.data.login}`
window.location.href = goPage ? decodeURIComponent(goPage) : `/${response.data.login}`
})
}else{
window.location.href = goPage ? goPage : `/${response.data.login}`
window.location.href = goPage ? decodeURIComponent(goPage) : `/${response.data.login}`
}
}
}).catch((error) => {

View File

@ -63,12 +63,12 @@ function Register(props){
//forge
const searchParams = new URLSearchParams(search.substring(1));
const goPage = searchParams.get("go_page");
if(["https://gitlink.educoder.net/paths/z8ag3qtm", "https://gitlink.educoder.net/paths/fyka9x35"].includes(goPage)){
if(goPage.includes("gitlink.educoder.net")){
getCurrentRole(34, 375).finally(()=>{
window.location.href = goPage ? goPage : `/${response.data.login}`
window.location.href = goPage ? decodeURIComponent(goPage) : `/${response.data.login}`
})
}else{
window.location.href = goPage ? goPage : `/${response.data.login}`
window.location.href = goPage ? decodeURIComponent(goPage) : `/${response.data.login}`
}
} else {
setEmailStr(values.email);