wzg 2 лет назад
Родитель
Сommit
ea47f7a6e9
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/views/index/Index.vue

+ 3 - 1
src/views/index/Index.vue

@@ -635,7 +635,9 @@ async function getIndexSelect() {
 }
 }
 
 
 router.beforeEach(() => {
 router.beforeEach(() => {
-  myChart.value.dispose();
+  try {
+    myChart.value.dispose();
+  } catch (error) {}
 });
 });
 onMounted(() => {
 onMounted(() => {
   getIndexData("init");
   getIndexData("init");