From 3a5db4178a737ec7c25e653427be44193f8c04c0 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Sun, 25 Sep 2022 17:05:44 +0800 Subject: [PATCH] perf: turn off preview mode when closing attachment detail modal Signed-off-by: Ryan Wang --- .../contents/attachments/components/AttachmentDetailModal.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/contents/attachments/components/AttachmentDetailModal.vue b/src/modules/contents/attachments/components/AttachmentDetailModal.vue index a74f64f9..c2f4d904 100644 --- a/src/modules/contents/attachments/components/AttachmentDetailModal.vue +++ b/src/modules/contents/attachments/components/AttachmentDetailModal.vue @@ -63,6 +63,8 @@ const getGroupName = (name: string | undefined) => { const onVisibleChange = (visible: boolean) => { emit("update:visible", visible); if (!visible) { + policy.value = undefined; + onlyPreview.value = false; emit("close"); } };