diff --git a/src/renderer/src/views/model/index.vue b/src/renderer/src/views/model/index.vue index 4bc6ebb..a10a761 100644 --- a/src/renderer/src/views/model/index.vue +++ b/src/renderer/src/views/model/index.vue @@ -402,8 +402,8 @@ const changeBook = async(data) => { let cata = parseCataByNode(data.node) currentNode.value = data.node uploadData.value.levelFirstId = cata[0] - uploadData.value.levelSecondId = cata[1] - uploadData.value.levelThirdId = cata[2] + uploadData.value.levelSecondId = cata[1]==null||cata[1]== undefined ? '' : cata[1] + uploadData.value.levelThirdId = cata[2]==null||cata[2]== undefined ? '' : cata[2] uploadData.value.textbookId = data.textBook.curBookId getModelInfo({cataid: currentNode.value.id}).then(res=>{ console.log(res)