mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2026-07-13 22:36:36 +10:00
fixes and patches for merged changes
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
export default defineNuxtPlugin((nuxtApp) => {
|
||||
nuxtApp.vueApp.config.errorHandler = (error, instance, info) => {
|
||||
// handle error, e.g. report to a service
|
||||
};
|
||||
|
||||
// Also possible
|
||||
nuxtApp.hook("vue:error", (error, instance, info) => {
|
||||
console.log(error);
|
||||
const router = useRouter();
|
||||
router.replace("/error");
|
||||
router.replace(`/error`);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user