Explorar el Código

更新 首页饼图渲染

王智慧 hace 3 años
padre
commit
f328f70d81
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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();