duy 2 роки тому
батько
коміт
44d279cc32
1 змінених файлів з 13 додано та 2 видалено
  1. 13 2
      src/views/using/stats.vue

+ 13 - 2
src/views/using/stats.vue

@@ -59,7 +59,7 @@
 </template>
 
 <script setup>
-import {ref, onMounted} from "vue";
+import {ref, onMounted,watch} from "vue";
 import {useAppStore} from "~src/store";
 import BarChart from "./components/echarts/BarChart.vue"
 import ArrRoundChart from "./components/echarts/ArrRoundChart.vue"
@@ -83,7 +83,18 @@ onMounted(() => {
     gettableData()
 
 })
-
+//监听
+watch(() => [
+    useAppState.getProjectId
+], ([ProjectId]) => {
+    projectId.value = ProjectId
+    gethasBeenChartData()
+    getfixedChartData()
+    getdestroyChartData()
+    getnativeChartData()
+    getallArchiveFileSize()
+    gettableData()
+})
 //原生、数字化文件数量 图表配置
 const nativeChartRef = ref(null)
 const nativeChartConfig = {