From 8dd7af51db4cf768fbf92002b5b62f7fb9d1c929 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期二, 06 五月 2025 15:04:59 +0800
Subject: [PATCH] refactor(zhitan):调整模型代码和优化能源统计功能

---
 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