Skip to content

Commit

Permalink
Initialize route. (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
bencoombs authored Feb 4, 2025
1 parent 2070740 commit 0f100b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist/
*.sqlite
.DS_Store
coverage/
.azurite/
3 changes: 2 additions & 1 deletion packages/frontend/pages/record/[deviceKey].vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ export default {
qrCodeComponent?.downloadQRCode()
},
viewRecord() {
navigateTo(`/history/${route.params.deviceKey}`);
const route = useRoute();
navigateTo(`/history/${route.params.deviceKey as string}`);
}
},
async mounted() {
Expand Down

0 comments on commit 0f100b2

Please sign in to comment.