mirror of https://github.com/halo-dev/halo-admin
Fixed bug.
parent
f2490e5384
commit
49dcd54108
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue