全局变量销毁时还原
This commit is contained in:
@@ -244,6 +244,7 @@ export default function useWS() {
|
||||
userActivityReset();
|
||||
upfTotalFlowReset();
|
||||
topologyReset();
|
||||
upfWhoRmUid.value='';
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
@@ -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">
|
||||
<!-- 实时流量 -->
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user