新增条件避免意外触发查询
This commit is contained in:
@@ -278,7 +278,7 @@ const Toolbar: React.FC<ToolbarProps> = ({ hiddenButtons, queryType }) => {
|
||||
>({});
|
||||
// 添加 useEffect 来查询计算属性
|
||||
useEffect(() => {
|
||||
if (!highlightFeature || !selectedDate) {
|
||||
if (!highlightFeature || !selectedDate || !showPropertyPanel) {
|
||||
setComputedProperties({});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user