Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Apr 5, 2024
1 parent f46c98a commit e85f22a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions webclient/pages/[view]/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ watchEffect(() => {
router.replace({ path: "/" });
}
});
watch(error, () => {
watchEffect(() => {
if (error.value) {
throw createError({
statusCode: 404,
statusMessage: error.value,
router.push({
path: "/404",
query: {...route.query, path:route.path},
hash: route.hash,
});
}
});
Expand Down

0 comments on commit e85f22a

Please sign in to comment.