소스 검색

修复 dispose

wzg 2 년 전
부모
커밋
ea47f7a6e9
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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");