fix: 运行状态卡顿处理+1

This commit is contained in:
100011797 2023-06-05 14:58:27 +08:00
parent 9ff650d76c
commit 462916918c
1 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,7 @@ import { getProperty } from '@/api/device/instance';
import { useInstanceStore } from '@/store/instance';
import { message } from 'ant-design-vue';
import { getWebSocket } from '@/utils/websocket';
import { map, throttleTime } from 'rxjs/operators';
import { map } from 'rxjs/operators';
import { queryDashboard } from '@/api/comm';
const columns = [
@ -298,6 +298,7 @@ const getDashboard = async () => {
});
propertyValue.value = { ...unref(propertyValue), ...obj };
}
subRef.value && subRef.value?.unsubscribe();
subscribeProperty();
loading.value = false;
};
@ -314,6 +315,7 @@ const query = (params: Record<string, any>) =>
arr = _.cloneDeep(li);
}
dataSource.value = arr.slice(_from, _to)
messageCache.clear()
resolve({
result: {
data: dataSource.value,