huangxw 1 miesiąc temu
rodzic
commit
361cfcec18
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/components/Editor/index.vue

+ 1 - 1
src/components/Editor/index.vue

@@ -170,7 +170,7 @@ const handleBeforeUpload = (file: any) => {
 };
 
 onUnmounted(() => {
-    aiEditor && aiEditor.destroy();
+    aiEditor.value && aiEditor.value.destroy();
 })
 </script>