From 098e473cabd38d1f15c97f77096066fb6a553ece Mon Sep 17 00:00:00 2001 From: falling Date: Sun, 21 Jan 2024 19:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8Eqbt=E5=90=8E=E5=8F=B0=E7=9A=84?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC=E6=9D=A5=E6=9B=B4=E6=96=B0=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/cards/DownloadingCard.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/cards/DownloadingCard.vue b/src/components/cards/DownloadingCard.vue index da32bb40..05b4a556 100644 --- a/src/components/cards/DownloadingCard.vue +++ b/src/components/cards/DownloadingCard.vue @@ -23,6 +23,11 @@ function getSpeedText() { // 下载状态 const isDownloading = ref(props.info?.state === 'downloading') +// 监听props.info?.state的变化 +watch(() => props.info?.state, (newValue) => { + isDownloading.value = newValue === 'downloading'; +}); + // 图片是否加载完成 const imageLoaded = ref(false)