Fix quick entry persistence

This commit is contained in:
openclaw 2026-07-22 23:59:38 +08:00
parent 45d7249d13
commit 08354ac897
4 changed files with 4 additions and 4 deletions

View File

@ -396,7 +396,7 @@ function saveEntry() {
<input
v-model="note"
maxlength="40"
placeholder="备注(可选)"
placeholder="备注"
aria-label="备注"
@focus="startNoteEditing"
@blur="noteEditing = false"

View File

@ -20,7 +20,7 @@ export function createEntry(input: EntryInput): LedgerEntry {
return {
id: createId(),
ownerId: input.createdBy ?? "local-user",
ledgerIds: input.ledgerIds,
ledgerIds: [...new Set(input.ledgerIds)],
type: input.type,
amount: input.amount,
currency: input.currency,

View File

@ -266,7 +266,7 @@ function chooseChild(category: Category) {
<span class="edit-field-leading note"><NotebookText :size="19" /></span>
<span class="edit-field-copy">
<small>备注</small>
<textarea v-model="note" maxlength="120" rows="3" placeholder="补充说明(可选)"></textarea>
<textarea v-model="note" maxlength="120" rows="3" placeholder="补充说明"></textarea>
</span>
</label>
</section>

View File

@ -277,7 +277,7 @@ async function deleteEntry() {
<span class="entry-field-icon note"><NotebookText :size="19" /></span>
<span class="entry-field-copy">
<small>备注</small>
<textarea v-model="note" maxlength="120" rows="3" placeholder="补充说明(可选)"></textarea>
<textarea v-model="note" maxlength="120" rows="3" placeholder="补充说明"></textarea>
</span>
</label>
</section>