From b0359c4e17a4d36f5446742e753712530865de5d Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 3 Nov 2022 15:26:18 +0800 Subject: [PATCH] fix: some vue warn in browser dev console (#679) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement /milestone 2.0 #### What this PR does / why we need it: 修复一些因使用不当导致的 Vue warn。 #### Screenshots: image #### Special notes for your reviewer: /cc @halo-dev/sig-halo-console #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../components/AttachmentDetailModal.vue | 25 +++++++++++-------- .../CoreSelectorProvider.vue | 2 +- .../UploadSelectorProvider.vue | 2 +- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/modules/contents/attachments/components/AttachmentDetailModal.vue b/src/modules/contents/attachments/components/AttachmentDetailModal.vue index ec828459..7b3fb685 100644 --- a/src/modules/contents/attachments/components/AttachmentDetailModal.vue +++ b/src/modules/contents/attachments/components/AttachmentDetailModal.vue @@ -100,20 +100,23 @@ const onVisibleChange = (visible: boolean) => { >
预览
- - - - + + + + + 此文件不支持预览
diff --git a/src/modules/contents/attachments/components/selector-providers/CoreSelectorProvider.vue b/src/modules/contents/attachments/components/selector-providers/CoreSelectorProvider.vue index e65e6ac6..339e74c2 100644 --- a/src/modules/contents/attachments/components/selector-providers/CoreSelectorProvider.vue +++ b/src/modules/contents/attachments/components/selector-providers/CoreSelectorProvider.vue @@ -118,7 +118,7 @@ await handleFetchAttachments(); :key="attachment.metadata.name" :alt="attachment.spec.displayName" :src="attachment.status?.permalink" - class="pointer-events-none object-cover group-hover:opacity-75" + classes="pointer-events-none object-cover group-hover:opacity-75" >