新增条件避免意外触发查询

This commit is contained in:
JIANG
2025-12-17 11:29:50 +08:00
parent 6d672800f9
commit 78bdd7ee4b

View File

@@ -278,7 +278,7 @@ const Toolbar: React.FC<ToolbarProps> = ({ hiddenButtons, queryType }) => {
>({}); >({});
// 添加 useEffect 来查询计算属性 // 添加 useEffect 来查询计算属性
useEffect(() => { useEffect(() => {
if (!highlightFeature || !selectedDate) { if (!highlightFeature || !selectedDate || !showPropertyPanel) {
setComputedProperties({}); setComputedProperties({});
return; return;
} }