wanshenmean
2026-01-28 6da78f667c6314148a871c07748d42895b65d79c
Code/WCS/WIDESEAWCS_Client/src/components/editor/VolWangEditor.vue
@@ -3,7 +3,16 @@
</template>
<script>
import E from "wangeditor";
let E = null;
async function loadWangEditor() {
  if (!E) {
    const module = await import("wangeditor");
    E = module.default || module;
  }
  return E;
}
export default {
  props: {
    url: {
@@ -66,9 +75,10 @@
  destroyed() {
    this.editor = null;
  },
  mounted() {
  async mounted() {
    this.editor = null;
    let editor = new E(this.$refs.volWangEditor);
    const EditorConstructor = await loadWangEditor();
    let editor = new EditorConstructor(this.$refs.volWangEditor);
    this.editor = editor;
    let $this = this;
    editor.config.zIndex = 500;