From 9a2a55c62b739cd0ab62ca555e1a95375d8829a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czouyf=E2=80=9D?= <80906036@qq.com> Date: Mon, 16 Dec 2024 17:30:00 +0800 Subject: [PATCH] 1 --- src/renderer/src/views/model/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)