Explorar o código

更新 首页饼图渲染

王智慧 %!s(int64=3) %!d(string=hai) anos
pai
achega
f328f70d81
Modificáronse 1 ficheiros con 5 adicións e 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();