From 105b45424984d3f402e2efc8b9d4d4506b672f61 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Fri, 21 Jun 2019 22:57:12 +0800 Subject: [PATCH] #20 --- src/views/interface/ThemeList.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/interface/ThemeList.vue b/src/views/interface/ThemeList.vue index 33fe5f44..12009e1b 100644 --- a/src/views/interface/ThemeList.vue +++ b/src/views/interface/ThemeList.vue @@ -8,7 +8,7 @@ theme.activated) + sortedThemes() { + const data = this.themes.slice(0) + return data.sort(function(a, b) { + return b.activated - a.activated + }) } }, created() { @@ -439,7 +442,7 @@ export default { onClose() { this.visible = false this.optionLoading = false - this.themeConfiguration = null + this.themeConfiguration = [] this.themeProperty = null }, handleChange(info) {