fix(qa): ISSUE-004 — show receipt ID in title immediately after save

Set receipt.value = savedReceipt before router.push() so modeTitle
computes 'Bon #123' even when Vue Router reuses the component instance
and onMounted does not re-run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-03-20 14:32:45 +00:00
parent 6eb88c8730
commit be7e97796d

View File

@@ -936,6 +936,7 @@ const saveReceipt = async () => {
life: 3000,
})
receipt.value = savedReceipt
router.push(`/data-entry/${savedReceipt.id}`)
} catch (error) {
toast.add({