diff --git a/src/forge/Component/SiderBar.js b/src/forge/Component/SiderBar.js index f99414a36..8d42c68a1 100644 --- a/src/forge/Component/SiderBar.js +++ b/src/forge/Component/SiderBar.js @@ -105,26 +105,27 @@ function SiderBar(props) { function loginAi(){ const url = `https://testai.trustie.net/login`; - axios.post(url,{username:"chaosuan",password:"12345678"}).then(res=>{ - if(res && res.data){ - window.open(`https://testai.trustie.net/chat`); - } - }).catch(error=>{ - console.error('loginAi请求失败:', error); - message.error('连接智能助手失败,请稍后重试'); - }) + const regurl = `https://testai.trustie.net/register`; + axios.post(regurl,{username:user.login,password:"12345678"}).then(res=>{ + axios.post(url,{username:user.login,password:"12345678"}).then(res=>{ + if(res && res.data){ + window.open(`https://testai.trustie.net/chat`); + } + }).catch(error=>{}) + }).catch(error=>{}) + } return (
{/* 超算智能助手 */} - {/* { location.pathname === "/zone/NSCC" && + { location.pathname === "/zone/NSCC" && user && user.login &&
- } */} + } {/* 平台反馈 */}