From 007953d1293d45351bdabad64c2c8aea860e58d4 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Tue, 14 Feb 2023 18:57:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../后端辅助工具/src/DataType/Interface.ts | 5 +++++ .../src/views/requirement/RequirementManager.vue | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 code/ts/后端辅助工具/src/DataType/Interface.ts diff --git a/code/ts/后端辅助工具/src/DataType/Interface.ts b/code/ts/后端辅助工具/src/DataType/Interface.ts new file mode 100644 index 0000000..bb18198 --- /dev/null +++ b/code/ts/后端辅助工具/src/DataType/Interface.ts @@ -0,0 +1,5 @@ + +interface document +{ + getElementById(id: string): HTMLElement | null; +} \ No newline at end of file diff --git a/code/web/IT工具综合平台/src/views/requirement/RequirementManager.vue b/code/web/IT工具综合平台/src/views/requirement/RequirementManager.vue index 1699f73..ef9afb4 100644 --- a/code/web/IT工具综合平台/src/views/requirement/RequirementManager.vue +++ b/code/web/IT工具综合平台/src/views/requirement/RequirementManager.vue @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2023-02-02 22:19:12 * @LastEditors: Kane - * @LastEditTime: 2023-02-13 12:50:29 + * @LastEditTime: 2023-02-14 08:54:25 * @FilePath: /IT工具综合平台/src/views/requirement/RequirementManager.vue * @Description: * @@ -418,12 +418,12 @@ export default { onUIChange(); //销毁详情页面的editor - // const detailEditor = detailEditorRef.value; + const detailEditor = detailEditorRef.value; - // if (detailEditor !== null) - // { - // detailEditor.destroy(); - // } + if (detailEditor != null) + { + detailEditor.destroy(); + } //销毁备注页的editor const commentEditor = commentEditorRef.value; @@ -478,7 +478,7 @@ export default { handleDetailEditorCreated, handleCommentEditorCreated, //生命周期 - onBeforeMount, + //onBeforeMount, }; //#endregion },