Browse Source

fix:修复代码提示重复创建缓存未clear的问题 <CodeEditor>

Grnetsky 4 weeks ago
parent
commit
7c0f40434e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/views/components/common/CodeEditor.vue

+ 1 - 0
src/views/components/common/CodeEditor.vue

@@ -219,6 +219,7 @@ watch(
 );
 
 onUnmounted(() => {
+  completionDisposables.forEach(disposable=>{disposable.dispose()})
   editor?.dispose();
 });
 </script>