改动监控页的ws文件

This commit is contained in:
lai
2024-07-01 19:22:31 +08:00
parent 7c420c7c95
commit 60dc02010d
4 changed files with 70 additions and 21 deletions

View File

@@ -22,9 +22,10 @@ import {
upfFlowParse,
} from '../dashboard/overview/hooks/useUPFTotalFlow';
import { parseSizeFromKbs } from '@/utils/parse-utils';
import { onBeforeMount } from 'vue';
import { onBeforeUnmount } from 'vue';
import { upfWhoRmUid } from '../dashboard/overview/hooks/useWS';
import useWS from '../dashboard/overview/hooks/useWS';
const { reSendUPF } = useWS();
const { t } = useI18n();
echarts.use([
@@ -219,6 +220,9 @@ function fnGetInitData() {
})
.then(res => {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
if (res.data.length > 0) {
reSendUPF(res.data[0].rmUID);
}
for (const item of res.data) {
upfFlowParse(item);
}