This commit is contained in:
fengchuanhn@gmail.com
2026-05-16 11:24:18 +08:00
parent 491231bdd5
commit c88b2d0f3d
17 changed files with 2401 additions and 16 deletions

View File

@@ -1,4 +1,6 @@
import { defineStore, acceptHMRUpdate } from "pinia";
import { invoke } from "@tauri-apps/api/core";
import { listen } from "@tauri-apps/api/event";
const defaultPublishPlatforms = () => [
{ label: "*音", checked: false, account: null },
@@ -93,7 +95,7 @@ export const useWorkflowStore = defineStore("workflow", {
closeIpBrainDialog() {
this.ipBrainModalVisible = false;
},
async startIpBrainCollect() {
const url = this.ipBrainProfileUrl?.trim();
if (!url) {
@@ -153,7 +155,31 @@ export const useWorkflowStore = defineStore("workflow", {
},
},
});
export async function processDouyinShare(shareText){
const result = await invoke("run_quickjs_script", {
scriptName:"douyin_pipeline.js",
params: {
shareText: "复制此链接打开Dou音搜索直接观看视频https://v.douyin.com/xxxxx/",
modelConfig: {
providerId: "openai",
modelId: "gpt-4o-mini",
apiUrl: "https://api.openai.com", // 或 dashscope/openrouter 等任意兼容端点
apiKey: "sk-...",
asrMode: "online",
aliyunApiKey: "sk-dashscope-...",
ossConfig: {
accessKeyId: "...",
accessKeySecret: "...",
bucket: "my-bucket",
region: "oss-cn-hangzhou",
},
},
rewriteConfig: { style: "幽默口播", tone: "活泼" },
customPrompt: null,
},
});
return result;
}
export async function executeVideoRewrite(store) {
const text = store.videoShareText?.trim();
if (!text) {