Fixed bug.

pull/9/head
ruibaby 2019-05-15 09:37:31 +08:00
parent f2490e5384
commit 49dcd54108
1 changed files with 11 additions and 0 deletions

View File

@ -338,6 +338,17 @@ export default {
created() { created() {
this.loadThemes() this.loadThemes()
}, },
destroyed: function() {
if (this.visible) {
this.visible = false
}
},
beforeRouteLeave(to, from, next) {
if (this.visible) {
this.visible = false
}
next()
},
methods: { methods: {
loadThemes() { loadThemes() {
this.themeLoading = true this.themeLoading = true