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