diff --git a/src/views/stationData/topology/components/detailDrawer.vue b/src/views/stationData/topology/components/detailDrawer.vue index 027d6c6..3ef1048 100644 --- a/src/views/stationData/topology/components/detailDrawer.vue +++ b/src/views/stationData/topology/components/detailDrawer.vue @@ -320,6 +320,7 @@ function setChartData(pointData: any[]) { function handleBeforeClose(done: () => void) { + time.value = undefined isShowDrawer.value = false clearData() fullscreenLoading.value = null @@ -327,7 +328,6 @@ function handleBeforeClose(done: () => void) { } function clearData() { - time.value = undefined chartLimit.value = 1000 chartOffset.value = 0 chartAllTotal.value = 0 diff --git a/src/views/stationData/transfer/components/deviceDrawer.vue b/src/views/stationData/transfer/components/deviceDrawer.vue index d6cee62..8e035d7 100644 --- a/src/views/stationData/transfer/components/deviceDrawer.vue +++ b/src/views/stationData/transfer/components/deviceDrawer.vue @@ -287,6 +287,7 @@ function setChartData(pointData: any[]) { } function handleBeforeClose(done: () => void) { + time.value = undefined isShowDrawer.value = false clearData() fullscreenLoading.value = null @@ -294,7 +295,6 @@ function handleBeforeClose(done: () => void) { } function clearData() { - time.value = undefined chartLimit.value = 1000 chartOffset.value = 0 chartAllTotal.value = 0