Pārlūkot izejas kodu

更新 首页饼图渲染

王智慧 3 gadi atpakaļ
vecāks
revīzija
f328f70d81
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      src/views/index/Index.vue

+ 5 - 0
src/views/index/Index.vue

@@ -635,6 +635,11 @@ async function getIndexSelect() {
     cargoOptions.value = [];
   }
 }
+
+router.beforeEach(() => {
+  myChart.value.dispose();
+});
+
 onMounted(() => {
   getIndexData("init");
   getIndexSelect();