从qbt后台的返回值来更新下载状态

This commit is contained in:
falling
2024-01-21 19:48:47 +08:00
parent f6f3d9368a
commit 098e473cab

View File

@@ -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)