王智慧 3 лет назад
Родитель
Сommit
1f4d6096b7
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/views/index/Index.vue

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

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