Explorar el Código

修复 dispose

wzg hace 2 años
padre
commit
ea47f7a6e9
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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");