feat: 语音

This commit is contained in:
2026-02-01 18:35:03 +08:00
parent 646a72de64
commit 003e55dccf
8 changed files with 45 additions and 67 deletions

View File

@@ -174,14 +174,14 @@ async function generateCopywriting() {
return
}
// 检查是否选择了提示词风格
// 检查是否选择了风格
if (!form.value.prompt || !form.value.prompt.trim()) {
message.warning('请先选择提示词风格')
message.warning('请先选择文案风格')
return
}
if (!selectedPromptId.value) {
message.warning('请先选择提示词风格')
message.warning('请先选择文案风格')
return
}
@@ -386,13 +386,6 @@ defineOptions({ name: 'ContentStyleCopywriting' })
<a-card class="form-card" :bordered="false" title="创作设置">
<a-form :model="form" layout="vertical" class="form-container">
<a-form-item class="form-item">
<template #label>
<span>
选择提示词风格
<span class="form-tip-inline">从已保存的提示词中选择</span>
</span>
</template>
<!-- 使用 PromptSelector 组件 -->
<PromptSelector
v-model="selectedPromptId"
@@ -403,10 +396,7 @@ defineOptions({ name: 'ContentStyleCopywriting' })
@update:searchKeyword="promptSearchKeyword = $event"
/>
<!-- 空状态提示 -->
<div v-if="!loadingPrompts && allPrompts.length === 0" class="prompt-empty" style="color: var(--color-text-secondary); font-size: 14px; text-align: center; padding: 20px;">
您可以在视频分析页面保存风格
</div>
</a-form-item>
<!-- 统一输入文本或视频链接 -->