From e98d551090f0af14acbff9f41ad48a81dedfa4d4 Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 9 Dec 2022 15:46:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=AF=BE=E7=A8=8B=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E9=9D=A2=E6=8E=88=E8=AF=BE=E6=9C=AA=E5=88=9B=E5=BB=BA=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=85=B3=E9=97=AD=E6=8C=89=E9=92=AE=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/courseModal.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/courselibrary/courseModal.vue b/src/views/courselibrary/courseModal.vue index 11458458..fdb4b71d 100644 --- a/src/views/courselibrary/courseModal.vue +++ b/src/views/courselibrary/courseModal.vue @@ -21,7 +21,7 @@
@@ -424,6 +424,13 @@ export default defineComponent({ emit("visibleClose"); }; + // 未编辑直接离开的 不予刷新 + const noEditClose = () => { + state.ft_hs = false; + ft_exit(); + emit("noEdit"); + } + expose({ visibleOpen, visibleClose, @@ -735,7 +742,7 @@ export default defineComponent({ handleTagClose, handlePush, reviewClick, - + noEditClose, editorRef, valueHtml, mode: "simple", // 或 'simple'