Merge pull request #60 from x1ao4/dev

修复影视发现页面的 “创建任务” 按钮错误触发编辑模式而非创建模式的问题
This commit is contained in:
x1ao4 2025-09-16 18:19:14 +08:00 committed by GitHub
commit 401b7fe869
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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中提取