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