fix: 移除getHistory中setLoading(true)避免切换主机时下拉框闪烁消失

This commit is contained in:
attacker committed 2026-06-24 16:56:03 +00:00
1 parent 4718095f97
commit ffa73353f1
1 file changed
-1
-1
View File
@@ -153,7 +153,6 @@ export function HostMonitor() {
useEffect(() => {
if (!selectedHost) return;
setLoading(true);
agentApi.getHistory(selectedHost, rangeHours)
.then((data: any) => {
const list = Array.isArray(data) ? data : (data?.data || data?.list || []);