fix: remove canvas prompt suggestions

This commit is contained in:
2026-05-25 17:36:14 +08:00
parent 378d151b14
commit fb9dc17b42
3 changed files with 14 additions and 51 deletions

View File

@@ -213,21 +213,6 @@
</div>
</div>
<!-- Quick suggestions | 快捷建议 -->
<div class="flex flex-wrap items-center justify-center gap-2 mt-2">
<span class="text-xs text-[var(--text-secondary)]">推荐</span>
<button
v-for="tag in suggestions"
:key="tag"
@click="chatInput = tag"
class="px-2 py-0.5 text-xs rounded-full bg-[var(--bg-secondary)]/80 border border-[var(--border-color)] hover:border-[var(--accent-color)] transition-colors"
>
{{ tag }}
</button>
<button class="p-1 hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">
<n-icon :size="14"><RefreshOutline /></n-icon>
</button>
</div>
</div>
</div>
@@ -274,7 +259,6 @@ import {
AddOutline,
ImageOutline,
SendOutline,
RefreshOutline,
TextOutline,
VideocamOutline,
ColorPaletteOutline,
@@ -464,14 +448,6 @@ const inputPlaceholder = computed(() => {
return '写清楚画面、动作、镜头、产品出现方式、视频比例和时长'
})
// Quick suggestions | 快捷建议
const suggestions = [
'15 秒竖屏,办公室午休,人物戴上 SKG 颈部按摩仪放松,镜头缓慢推进',
'详情页横图SKG 产品在干净桌面上,晨光,质感高级',
'首帧人物低头办公,过渡到佩戴 SKG 后肩颈放松,产品形状保持稳定',
'竖屏广告,真实生活场景,产品清晰可见,无文字水印'
]
const setCreationMode = (mode) => {
creationMode.value = mode
if (mode === 'text-video' || mode === 'text-image') {

View File

@@ -48,21 +48,6 @@
</div>
</div>
<!-- Quick suggestions | 快捷建议 -->
<div class="flex flex-wrap items-center justify-center gap-2 mt-4">
<span class="text-sm text-[var(--text-secondary)]">推荐</span>
<button
v-for="tag in suggestions"
:key="tag"
@click="inputText = tag"
class="px-3 py-1.5 text-sm rounded-full bg-[var(--bg-secondary)] border border-[var(--border-color)] hover:border-[var(--accent-color)] transition-colors"
>
{{ tag }}
</button>
<button class="p-1.5 hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">
<n-icon :size="16"><RefreshOutline /></n-icon>
</button>
</div>
</div>
</section>
@@ -195,10 +180,8 @@ import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { NIcon, NDropdown, NModal, NInput, NButton, useDialog } from 'naive-ui'
import {
AddOutline,
ImageOutline,
AddOutline,
SendOutline,
RefreshOutline,
DocumentOutline,
FolderOutline,
EllipsisHorizontalOutline,
@@ -255,14 +238,6 @@ const showRenameModal = ref(false)
const renameValue = ref('')
const renameTargetId = ref(null)
// Suggestions tags | 建议标签
const suggestions = [
'SKG 颈部按摩仪竖屏广告',
'办公室午休放松短片',
'详情页产品氛围图',
'首尾帧过渡视频'
]
// Format date | 格式化日期
const formatDate = (date) => {
if (!date) return ''