浏览代码

更新 首页饼图渲染

王智慧 3 年之前
父节点
当前提交
f328f70d81
共有 1 个文件被更改,包括 5 次插入0 次删除
  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();