From 6e8548b552579a5ead259ac75f5733e556f5f83d Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 6 Mar 2024 17:14:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/views/paragraph/component/ParagraphDialog.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/views/paragraph/component/ParagraphDialog.vue b/ui/src/views/paragraph/component/ParagraphDialog.vue index 540006b22..fd36f30e8 100644 --- a/ui/src/views/paragraph/component/ParagraphDialog.vue +++ b/ui/src/views/paragraph/component/ParagraphDialog.vue @@ -108,6 +108,7 @@ const open = (data: any) => { dialogVisible.value = true } const submitHandle = async () => { + loading.value = true if (await paragraphFormRef.value?.validate()) { if (problemId.value) { paragraph @@ -119,8 +120,8 @@ const submitHandle = async () => { loading ) .then((res: any) => { - emit('refresh', res.data) isEdit.value = false + emit('refresh', res.data) }) } else { const obj = @@ -131,8 +132,8 @@ const submitHandle = async () => { } : paragraphFormRef.value?.form paragraphApi.postParagraph(id, documentId, obj, loading).then((res) => { - emit('refresh') dialogVisible.value = false + emit('refresh') }) } }