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

This commit is contained in:
yangws 2024-09-12 09:47:46 +08:00
parent 3357cf8a78
commit 6a33ea8023
1 changed files with 5 additions and 0 deletions

View File

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