fix: 运行状态卡顿处理+1
This commit is contained in:
parent
9ff650d76c
commit
462916918c
|
|
@ -87,7 +87,7 @@ import { getProperty } from '@/api/device/instance';
|
||||||
import { useInstanceStore } from '@/store/instance';
|
import { useInstanceStore } from '@/store/instance';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
import { getWebSocket } from '@/utils/websocket';
|
import { getWebSocket } from '@/utils/websocket';
|
||||||
import { map, throttleTime } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
import { queryDashboard } from '@/api/comm';
|
import { queryDashboard } from '@/api/comm';
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
|
|
@ -298,6 +298,7 @@ const getDashboard = async () => {
|
||||||
});
|
});
|
||||||
propertyValue.value = { ...unref(propertyValue), ...obj };
|
propertyValue.value = { ...unref(propertyValue), ...obj };
|
||||||
}
|
}
|
||||||
|
subRef.value && subRef.value?.unsubscribe();
|
||||||
subscribeProperty();
|
subscribeProperty();
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
};
|
};
|
||||||
|
|
@ -314,6 +315,7 @@ const query = (params: Record<string, any>) =>
|
||||||
arr = _.cloneDeep(li);
|
arr = _.cloneDeep(li);
|
||||||
}
|
}
|
||||||
dataSource.value = arr.slice(_from, _to)
|
dataSource.value = arr.slice(_from, _to)
|
||||||
|
messageCache.clear()
|
||||||
resolve({
|
resolve({
|
||||||
result: {
|
result: {
|
||||||
data: dataSource.value,
|
data: dataSource.value,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue