This commit is contained in:
2026-10-04 14:23:42 +07:00
parent 839d83433e
commit 557a80ba01
+9 -2
View File
@@ -248,6 +248,13 @@ function markScreenPlanDirty() {
screenPlanDirty.value = true
}
function updateScreenPlanText(index: number, value: string | null) {
const step = screenPlanDraft.value[index]
if (!step) return
step.text = value || ''
screenPlanDirty.value = true
}
async function saveScreenPlan() {
if (screenPlanSaving.value) return
screenPlanSaving.value = true
@@ -1093,11 +1100,11 @@ useSimplePolling(() => {
/>
<n-input
v-if="step.mode === 'SCREEN_MODE_TEXT'"
v-model:value="step.text"
:value="step.text"
size="small"
placeholder="Текст экрана"
style="min-width: 240px"
@update:value="markScreenPlanDirty"
@update:value="(value) => updateScreenPlanText(index, value)"
/>
<template v-if="step.mode === 'SCREEN_MODE_TIMER'">
<n-input