wzg 2 anni fa
parent
commit
ea47f7a6e9
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/views/index/Index.vue

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

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