11
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user