全局变量销毁时还原
This commit is contained in:
@@ -244,6 +244,7 @@ export default function useWS() {
|
|||||||
userActivityReset();
|
userActivityReset();
|
||||||
upfTotalFlowReset();
|
upfTotalFlowReset();
|
||||||
topologyReset();
|
topologyReset();
|
||||||
|
upfWhoRmUid.value='';
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ import {
|
|||||||
upfTFActive,
|
upfTFActive,
|
||||||
upfTotalFlowReset,
|
upfTotalFlowReset,
|
||||||
} from './hooks/useUPFTotalFlow';
|
} from './hooks/useUPFTotalFlow';
|
||||||
import { upfWhoId, upfWhoRmUid } from './hooks/useWS';
|
import { upfWhoId } from './hooks/useWS';
|
||||||
|
|
||||||
import { useFullscreen } from '@vueuse/core';
|
import { useFullscreen } from '@vueuse/core';
|
||||||
import useWS from './hooks/useWS';
|
import useWS from './hooks/useWS';
|
||||||
@@ -414,6 +414,8 @@ onBeforeUnmount(() => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="column" style="flex: 4; margin: 1.333rem 0.833rem 0">
|
<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 UPFTEST from './tenantUPF.vue';
|
||||||
import MODULE from './moduleInfo.vue';
|
import MODULE from './moduleInfo.vue';
|
||||||
import { upfFlowData } from '../dashboard/overview/hooks/useUPFTotalFlow';
|
import { upfFlowData } from '../dashboard/overview/hooks/useUPFTotalFlow';
|
||||||
const { t } = useI18n();
|
|
||||||
console.log(upfFlowData.value.lineXTime.length);
|
|
||||||
|
|
||||||
onMounted(() => {});
|
onMounted(() => {});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user