Fix quick entry persistence
This commit is contained in:
parent
45d7249d13
commit
08354ac897
|
|
@ -396,7 +396,7 @@ function saveEntry() {
|
|||
<input
|
||||
v-model="note"
|
||||
maxlength="40"
|
||||
placeholder="备注(可选)"
|
||||
placeholder="备注"
|
||||
aria-label="备注"
|
||||
@focus="startNoteEditing"
|
||||
@blur="noteEditing = false"
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue