diff --git a/src/renderer/src/views/model/index.vue b/src/renderer/src/views/model/index.vue index 77b93fc..64d7214 100644 --- a/src/renderer/src/views/model/index.vue +++ b/src/renderer/src/views/model/index.vue @@ -239,8 +239,10 @@ const changeBook = async(data) => { const onchange = (item) => { let path = item.path if (path == '/model/newClassTaskAssign') { + uploadData.value.coursetitle = currentNode.value.itemtitle // (单元/章节) 名称 + uploadData.value.node = currentNode.value; // 保存当前节点 // 作业管理 - router.push({ path, query: { courseObj: JSON.stringify(courseObj) } }) + router.push({ path, query: { courseObj: JSON.stringify(uploadData.value) } }) } else if (path == '/model/aiKolors') { gotoAiKolors(path) } else { diff --git a/src/renderer/src/views/prepare/index.vue b/src/renderer/src/views/prepare/index.vue index c025ddc..210d5b0 100644 --- a/src/renderer/src/views/prepare/index.vue +++ b/src/renderer/src/views/prepare/index.vue @@ -104,10 +104,10 @@ - +
-   +   作业设计
@@ -580,14 +580,14 @@ export default { } } } - + if (o?.background?.image) await this.toRousrceUrl(o.background.image) // if (o?.elements) o.elements.forEach(async o => {await this.toRousrceUrl(o)}) if(o?.elements){ for (let element of o.elements) { await this.toRousrceUrl(element); - } - } + } + } }, async createAIPPTByFile(file) { this.pgDialog.visible = true