fix: 移除getHistory中setLoading(true)避免切换主机时下拉框闪烁消失
This commit is contained in:
1 parent
4718095f97
commit
ffa73353f1
1 file changed
-1
@@ -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 || []);
|
||||
|
||||
Reference in new issue
Block a user