From 71978c325b6d6eca66410a63580368dd097a7c82 Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Fri, 24 Nov 2023 00:52:48 +0800 Subject: [PATCH] fix: pin button in editor can not show on Linux --- .../content_value/ContentEntryEditor.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/content_value/ContentEntryEditor.vue b/frontend/src/components/content_value/ContentEntryEditor.vue index 7f910ab..954f415 100644 --- a/frontend/src/components/content_value/ContentEntryEditor.vue +++ b/frontend/src/components/content_value/ContentEntryEditor.vue @@ -63,7 +63,7 @@ watch( ) const loading = ref(false) -const pin = ref(false) +const isPin = ref(false) const viewAs = reactive({ field: '', value: '', @@ -130,13 +130,13 @@ const onToggleFullscreen = () => { } const onClose = () => { - pin.value = false + isPin.value = false emit('close') } const onSave = () => { emit('save', viewAs.field, viewAs.value, viewAs.decode, viewAs.format) - if (!pin.value) { + if (!isPin.value) { nextTick().then(onClose) } } @@ -178,13 +178,12 @@ const onSave = () => {