From c03e8d4d2cb9111bf12e1fe14eaf83fd1362af45 Mon Sep 17 00:00:00 2001 From: lyc Date: Thu, 18 Jul 2024 09:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/resource/container/resoure-list.vue | 2 +- src/renderer/src/views/resource/index.vue | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/renderer/src/views/resource/container/resoure-list.vue b/src/renderer/src/views/resource/container/resoure-list.vue index 7224900..e63d63e 100644 --- a/src/renderer/src/views/resource/container/resoure-list.vue +++ b/src/renderer/src/views/resource/container/resoure-list.vue @@ -123,7 +123,7 @@ const delRow = (item) => { const addLesson = ({ id }) => { let data = { id, - fileRoot: '资源', + fileRoot: '备课', ...(toRaw(sourceStore.nodeData)), } // 过滤空值 diff --git a/src/renderer/src/views/resource/index.vue b/src/renderer/src/views/resource/index.vue index 05fe01c..0e83a97 100644 --- a/src/renderer/src/views/resource/index.vue +++ b/src/renderer/src/views/resource/index.vue @@ -37,22 +37,17 @@ const openDialog = () => { // 查询 const getData = (data) => { const { textBook, node } = data - let textbookId = textBook.curBookId let levelSecondId = node.id let levelFirstId = node.parentNode ? node.parentNode.id : '' - sourceStore.query = { - levelFirstId, - levelSecondId, - ...sourceStore.query - } + sourceStore.query.levelFirstId = levelFirstId + sourceStore.query.levelSecondId = levelSecondId sourceStore.query.textbookId = textbookId sourceStore.nodeData = { textbookId, levelFirstId, levelSecondId, } - sourceStore.handleQuery() }