This commit is contained in:
parent
d5814b899f
commit
80eaa18ccd
|
@ -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)=>{
|
||||
|
|
|
@ -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出错')
|
||||
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
||||
//学生表格
|
||||
|
|
|
@ -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('账号已存在')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue