王智慧 3 лет назад
Родитель
Сommit
f328f70d81
1 измененных файлов с 5 добавлено и 0 удалено
  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();