mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
fix(app): notification modal fix
This commit is contained in:
parent
401710c3bd
commit
1dceb96c7c
1 changed files with 16 additions and 0 deletions
|
@ -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: {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue