From 1aa0f44041368031b521207bb8e28535d51e0579 Mon Sep 17 00:00:00 2001 From: x1ao4 Date: Tue, 16 Sep 2025 18:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BD=B1=E8=A7=86=E5=8F=91?= =?UTF-8?q?=E7=8E=B0=E9=A1=B5=E9=9D=A2=E7=9A=84=20=E2=80=9C=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E4=BB=BB=E5=8A=A1=E2=80=9D=20=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E8=A7=A6=E5=8F=91=E7=BC=96=E8=BE=91=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E8=80=8C=E9=9D=9E=E5=88=9B=E5=BB=BA=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重置 `createTaskFromDiscovery` 为创建模式,初始化表单,修复标题与底部按钮显示为创建态 --- app/templates/index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/templates/index.html b/app/templates/index.html index b5c9edd..3fbafc9 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -11783,6 +11783,13 @@ createTaskFromDiscovery(item) { // 从影视发现页面创建任务 try { + // 强制切换为创建模式并重置表单 + this.createTask.isEditMode = false; + this.createTask.editTaskIndex = null; + this.createTask.error = null; + // 使用 newTask 的完整结构初始化,再由智能填充覆盖 + this.createTask.taskData = { ...this.newTask }; + // 存储影视作品数据,并提取年份信息 const movieData = { ...item }; // 如果没有year字段,尝试从card_subtitle中提取