mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-17 07:07:36 +08:00
从qbt后台的返回值来更新下载状态
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user