This commit is contained in:
nopy 2024-07-09 11:11:34 +08:00
parent d5814b899f
commit 217260b778
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ function TeacherPage() {
const teacher_ID = localStorage.getItem('islogin') const teacher_ID = localStorage.getItem('islogin')
if(teacher_ID==null){ if(teacher_ID==null){
alert('登录过期,请重新登录') alert('登录过期,请重新登录')
window.location.href='http://36.138.114.105:30294/' window.location.href='/signin'
} }
const [classData, setClassData] = useState({}); const [classData, setClassData] = useState({});
const log=(key)=>{ const log=(key)=>{

View File

@ -82,7 +82,7 @@ function SendTrain(){
teacher_ID teacher_ID
}) })
alert('发布成功') alert('发布成功')
window.location.href='http://localhost:3000/teacher/trainmanage' window.location.href='/teacher/trainmanage'
}catch{ }catch{
alert('SendTrainTest出错') alert('SendTrainTest出错')