Parcourir la source

更新 首页饼图渲染

王智慧 il y a 3 ans
Parent
commit
1f4d6096b7
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/views/index/Index.vue

+ 4 - 0
src/views/index/Index.vue

@@ -633,6 +633,10 @@ async function getIndexSelect() {
     cargoOptions.value = [];
   }
 }
+
+router.beforeEach(() => {
+  myChart.value.dispose();
+});
 onMounted(() => {
   getIndexData("init");
   getIndexSelect();