From a1543bccf6b616d2db9d44b762826d58887172a6 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期二, 10 六月 2025 18:57:57 +0800 Subject: [PATCH] refactor(zhitan-system):优化获取节点ID列表的逻辑- 移除了过滤条件中的 parentNode 节点 ID 比较逻辑 - 现在只根据父节点 ID 是否非空来筛选 modelNodeList --- 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