fix: 提示教材没有时选择教材; #200

Merged
yangws merged 1 commits from yangws into main 2024-09-12 09:48:42 +08:00
1 changed files with 5 additions and 0 deletions

View File

@ -270,6 +270,11 @@ const updateClassReserv = (formData) => {
}
const addClassReserv = (formData) => {
let ids = formData.resource.join(',')
//
if(!props.bookId){
ElMessage.warning('请选择教材')
return
}
let param = {
className: formData.name,
classType: formData.type,