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:
@@ -936,6 +936,7 @@ const saveReceipt = async () => {
|
|||||||
life: 3000,
|
life: 3000,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
receipt.value = savedReceipt
|
||||||
router.push(`/data-entry/${savedReceipt.id}`)
|
router.push(`/data-entry/${savedReceipt.id}`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
toast.add({
|
toast.add({
|
||||||
|
|||||||
Reference in New Issue
Block a user