This commit is contained in:
949036910@qq.com
2026-05-31 02:29:24 +08:00
parent e042f15646
commit 736f1f9014
14 changed files with 348699 additions and 70 deletions

View File

@@ -28,8 +28,6 @@ import {
import {
executeAutoProcessVideo,
pickGreenScreenBackground,
pickPipMaterial,
saveSimplePipConfig,
} from "../services/videoEditProcess.js";
import { executeGenerateTitleTags } from "../services/titleTagsGenerate.js";
import {
@@ -222,6 +220,9 @@ export const useWorkflowStore = defineStore("workflow", {
/** 绿幕替换背景图本地路径 */
greenScreenBackgroundPath: "",
/** 画中画混剪设置弹窗 */
mixCutModalVisible: false,
/** 编辑后视频(与 generated 同步更新,便于后续步骤区分) */
processedVideoPath: "",
@@ -583,6 +584,14 @@ export const useWorkflowStore = defineStore("workflow", {
},
openMixCutDialog() {
this.mixCutModalVisible = true;
},
closeMixCutDialog() {
this.mixCutModalVisible = false;
},
selectVoice(voiceId) {
this.selectedVoiceId = voiceId;
@@ -652,18 +661,8 @@ export const useWorkflowStore = defineStore("workflow", {
},
async choosePipMaterial() {
const path = await pickPipMaterial();
if (!path) return { ok: false, message: "" };
await saveSimplePipConfig({
materialPath: path,
startTime: 0,
displayMode: "pip",
pipPosition: "bottom-right",
pipSizePercent: 30,
pipScaleMode: "fit",
});
this.pipInPicture = true;
return { ok: true, message: "已选择画中画素材" };
this.openMixCutDialog();
return { ok: true, message: "" };
},
async generateTitleTags() {