fix(app): notification modal fix

This commit is contained in:
mohit-nagaraj 2024-10-08 07:17:31 +05:30
parent 401710c3bd
commit 1dceb96c7c
No known key found for this signature in database

View file

@ -226,10 +226,26 @@ export default {
this.notification.name = this.getUniqueDefaultName(to); this.notification.name = this.getUniqueDefaultName(to);
} }
}, },
$route(to, from) {
if (this.modal) {
this.modal.hide();
}
}
}, },
mounted() { mounted() {
this.modal = new Modal(this.$refs.modal); this.modal = new Modal(this.$refs.modal);
}, },
beforeUnmount() {
if (this.modal) {
this.modal.dispose();
}
},
beforeRouteLeave(to, from, next) {
if (this.modal) {
this.modal.hide();
}
next();
},
methods: { methods: {
/** /**