From aefdecd0aa3226b7d00d1dc764241b82658b3be8 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 06 三月 2026 10:41:02 +0800
Subject: [PATCH] 添加机器人客户端;更新 WCS 缓存及任务
---
Code/WCS/WIDESEAWCS_Client/src/components/editor/VolWangEditor.vue | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_Client/src/components/editor/VolWangEditor.vue b/Code/WCS/WIDESEAWCS_Client/src/components/editor/VolWangEditor.vue
index d3813ae..928451d 100644
--- a/Code/WCS/WIDESEAWCS_Client/src/components/editor/VolWangEditor.vue
+++ b/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;
--
Gitblit v1.9.3