mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-13 16:22:43 +10:00
9 lines
219 B
TypeScript
9 lines
219 B
TypeScript
export default defineNuxtPlugin((nuxtApp) => {
|
|
// Also possible
|
|
nuxtApp.hook("vue:error", (error, instance, info) => {
|
|
console.log(error);
|
|
const router = useRouter();
|
|
router.replace(`/error`);
|
|
});
|
|
});
|