智能ai origin

This commit is contained in:
caishi 2026-06-16 14:52:01 +08:00
parent b6ef23de70
commit 50fb0aa025
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ function SiderBar(props) {
return props.showLoginDialog();
}
let origin = window.location.origin;
let preOrigin = origin.indexOf("gitlink") ? `https://testai.trustie.net`:`https://ai.gitlink.org.cn`;
let preOrigin = origin.indexOf("gitlink")>-1 ? `https://testai.trustie.net`:`https://ai.gitlink.org.cn`;
const url = `${preOrigin}/login`;
const regurl = `${preOrigin}/register`;
axios.post(regurl,{username:user.login,password:"12345678"}).then(res=>{