From fdd689daf5cf4c2083e6160d932d70e91bad46e1 Mon Sep 17 00:00:00 2001 From: BirtYu <714851131@qq.com> Date: 星期日, 13 四月 2025 22:51:38 +0800 Subject: [PATCH] Merge pull request #59 from zhitan-cloud/jiayu1.0 --- zhitan-vue/src/store/modules/settings.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/zhitan-vue/src/store/modules/settings.js b/zhitan-vue/src/store/modules/settings.js index 22b7336..357aeba 100644 --- a/zhitan-vue/src/store/modules/settings.js +++ b/zhitan-vue/src/store/modules/settings.js @@ -23,7 +23,7 @@ // 淇敼甯冨眬璁剧疆 changeSetting(data) { const { key, value } = data - if (this.hasOwnProperty(key)) { + if (key in this.$state) { this[key] = value } }, -- Gitblit v1.9.3