This commit is contained in:
parent
d5814b899f
commit
217260b778
|
@ -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)=>{
|
||||||
|
|
|
@ -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出错')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue