From 6e1f34ac62bd05694f7bebeee2c7f7d0003e30f5 Mon Sep 17 00:00:00 2001 From: "949036910@qq.com" <> Date: Sun, 31 May 2026 23:22:15 +0800 Subject: [PATCH] 11 --- src/components/workflow/Step04TitleTags.vue | 40 +++++++++- src/services/titleTagsGenerate.js | 84 +++++++++++++++++++-- src/stores/workflow.js | 2 +- 3 files changed, 115 insertions(+), 11 deletions(-) diff --git a/src/components/workflow/Step04TitleTags.vue b/src/components/workflow/Step04TitleTags.vue index 5ffded8..8c8eb16 100644 --- a/src/components/workflow/Step04TitleTags.vue +++ b/src/components/workflow/Step04TitleTags.vue @@ -14,14 +14,22 @@ const { keywordsEmotion, titleTagsGenerating, scriptContent, + titleTagPrompt, } = storeToRefs(workflow); const feedback = ref({ severity: "", message: "" }); +const promptExpanded = ref(false); const canGenerate = computed( () => Boolean(scriptContent.value?.trim()) && !titleTagsGenerating.value, ); +const titleLineCount = computed(() => { + const text = String(titleGenerated.value || "").trim(); + if (!text) return 0; + return text.split("\n").filter((line) => line.trim()).length; +}); + function showFeedback(result) { if (!result?.message) return; feedback.value = { @@ -63,11 +71,37 @@ async function onGenerateTitleTags() {

-
生成的标题(可编辑)
+ +