This commit is contained in:
949036910@qq.com
2026-06-02 21:52:14 +08:00
parent ca62a4ad6a
commit e294caf462
17 changed files with 2562 additions and 96 deletions

View File

@@ -39,7 +39,7 @@ import {
chooseCoverMaterial,
executeGenerateCover,
} from "../services/coverGenerate.js";
import { COVER_TEMPLATES } from "../config/coverTemplates.js";
import { getCoverTemplateById } from "../services/coverTemplateCatalog.js";
import {
executeOneClickPipeline,
stopOneClickPipeline,
@@ -301,7 +301,10 @@ export const useWorkflowStore = defineStore("workflow", {
coverTemplateId: "default",
/** 封面素材视频(可选,覆盖口播视频抽帧 */
/** 当前选中的完整封面模板(封面设置弹窗应用后写入 */
coverTemplate: null,
/** 封面素材视频/图片(可选,覆盖口播视频抽帧) */
coverCustomVideoPath: "",
@@ -378,10 +381,9 @@ export const useWorkflowStore = defineStore("workflow", {
},
coverTemplateLabel: (state) => {
const tpl = COVER_TEMPLATES.find(
(t) => t.id === (state.coverTemplateId || "default"),
);
return tpl?.label || "未选择";
if (state.coverTemplate?.name) return state.coverTemplate.name;
const tpl = getCoverTemplateById(state.coverTemplateId || "default");
return tpl?.name || "未选择";
},
coverMaterialFileName: (state) => {