From 49dcd541084eeb3ee35c3d45989d9d504f4dedd9 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Wed, 15 May 2019 09:37:31 +0800 Subject: [PATCH] Fixed bug. --- src/views/interface/ThemeList.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/views/interface/ThemeList.vue b/src/views/interface/ThemeList.vue index 22d180d7..ce20cb81 100644 --- a/src/views/interface/ThemeList.vue +++ b/src/views/interface/ThemeList.vue @@ -338,6 +338,17 @@ export default { created() { this.loadThemes() }, + destroyed: function() { + if (this.visible) { + this.visible = false + } + }, + beforeRouteLeave(to, from, next) { + if (this.visible) { + this.visible = false + } + next() + }, methods: { loadThemes() { this.themeLoading = true