From 747cab3aa195c03b87d8ff5174bafe72e5bb3ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9A=8F=E5=BF=83?= Date: Sat, 18 Nov 2023 00:08:08 +0800 Subject: [PATCH] fix: vue warning issue in BackupListItem component (#4870) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area console /kind improvement /milestone 2.11.x #### What this PR does / why we need it: 修复代码错误导致的控制台警告。异常现象:备份列表页面,有多少备份文件就会有多少个警告日志。 ![image](https://github.com/halo-dev/halo/assets/44720422/2dc64621-9731-4647-b23e-c3a5aa115c37) #### Which issue(s) this PR fixes: Fixes #4871 #### Special notes for your reviewer: None #### Does this PR introduce a user-facing change? ```release-note 修复备份页面中的浏览器控制台警告日志 ``` --- .../modules/system/backup/components/BackupListItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console/console-src/modules/system/backup/components/BackupListItem.vue b/console/console-src/modules/system/backup/components/BackupListItem.vue index eac33f2613..42217f7bfe 100644 --- a/console/console-src/modules/system/backup/components/BackupListItem.vue +++ b/console/console-src/modules/system/backup/components/BackupListItem.vue @@ -26,7 +26,7 @@ const { t } = useI18n(); const props = withDefaults( defineProps<{ backup: Backup; - showOperations: boolean; + showOperations?: boolean; }>(), { showOperations: true,