This commit is contained in:
30404 2024-07-09 11:13:14 +08:00
parent d5814b899f
commit 80eaa18ccd
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@ -25,7 +25,7 @@ function TeacherPage() {
const teacher_ID=localStorage.getItem('islogin')
if(teacher_ID==null){
alert('登录过期,请重新登录')
window.location.href='http://36.138.114.105:30294/'
window.location.href='/signin'
}
//

View File

@ -72,7 +72,7 @@ import axios from 'axios';
const register_data=register_func.data
if (register_data.result==='注册成功'){
alert('注册成功')
window.location.href='/'
window.location.href='/signin'
}else if(register_data.result==='注册失败'){
alert('账号已存在')
}