修复视频分辨率问题

This commit is contained in:
2026-07-05 14:35:36 +08:00
parent 02fff338cf
commit 28fe59a1af
2 changed files with 39 additions and 1 deletions
+6
View File
@@ -303,7 +303,13 @@ async function copyImage(url) {
const count = ref(1)
const batchCount = computed(() => (mode.value === 'image' ? Math.max(1, Math.min(4, count.value)) : 1))
// Guard against accidental double-clicks: a second run() within 600ms is
// ignored (each click otherwise fires an independent, charged generation).
let lastRunAt = 0
async function run() {
const now = Date.now()
if (now - lastRunAt < 600) return
lastRunAt = now
if (!modelId.value) { error.value = '请选择模型'; return }
if (!prompt.value.trim()) { error.value = '请输入提示词'; return }
if (refsRequired.value && refImages.value.length < 1) {