改动监控页的ws文件
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user