全局变量销毁时还原

This commit is contained in:
lai
2024-07-11 20:24:06 +08:00
parent aa4f11bf44
commit 1f7becef0a
3 changed files with 4 additions and 3 deletions

View File

@@ -244,6 +244,7 @@ export default function useWS() {
userActivityReset();
upfTotalFlowReset();
topologyReset();
upfWhoRmUid.value='';
});
return {

View File

@@ -25,7 +25,7 @@ import {
upfTFActive,
upfTotalFlowReset,
} from './hooks/useUPFTotalFlow';
import { upfWhoId, upfWhoRmUid } from './hooks/useWS';
import { upfWhoId } from './hooks/useWS';
import { useFullscreen } from '@vueuse/core';
import useWS from './hooks/useWS';
@@ -414,6 +414,8 @@ onBeforeUnmount(() => {
</div>
</div>
</div>
</div>
<div class="column" style="flex: 4; margin: 1.333rem 0.833rem 0">
<!-- 实时流量 -->

View File

@@ -5,8 +5,6 @@ import useI18n from '@/hooks/useI18n';
import UPFTEST from './tenantUPF.vue';
import MODULE from './moduleInfo.vue';
import { upfFlowData } from '../dashboard/overview/hooks/useUPFTotalFlow';
const { t } = useI18n();
console.log(upfFlowData.value.lineXTime.length);
onMounted(() => {});
</script>