mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-08 17:26:41 +08:00
fix
This commit is contained in:
@@ -12,7 +12,7 @@ const cardState = ref(true);
|
|||||||
|
|
||||||
// 进度条
|
// 进度条
|
||||||
const getPercentage = () => {
|
const getPercentage = () => {
|
||||||
return props.info?.progress || 0;
|
return props.info?.progress ?? 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
// 速度
|
// 速度
|
||||||
@@ -39,9 +39,9 @@ const toggleDownload = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 删除下截
|
// 删除下截
|
||||||
const deleteDownload = () => {
|
const deleteDownload = async () => {
|
||||||
try {
|
try {
|
||||||
api.delete(`download/${props.info?.hash}`);
|
await api.delete(`download/${props.info?.hash}`);
|
||||||
cardState.value = false;
|
cardState.value = false;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
@@ -53,14 +53,23 @@ const deleteDownload = () => {
|
|||||||
<VCard :key="props.info?.hash" v-if="cardState">
|
<VCard :key="props.info?.hash" v-if="cardState">
|
||||||
<div class="d-flex justify-space-between flex-nowrap flex-row">
|
<div class="d-flex justify-space-between flex-nowrap flex-row">
|
||||||
<div class="ma-auto pa-3 pe-0" v-if="props.info?.media.image">
|
<div class="ma-auto pa-3 pe-0" v-if="props.info?.media.image">
|
||||||
<VImg aspect-ratio="2/3" width="100" class="rounded" :src="props.info?.media.image" />
|
<VImg
|
||||||
|
aspect-ratio="2/3"
|
||||||
|
width="100"
|
||||||
|
class="rounded"
|
||||||
|
:src="props.info?.media.image"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<VCardTitle>{{ props.info?.media.title || props.info?.name }}
|
<VCardTitle
|
||||||
{{ props.info?.season_episode }}</VCardTitle>
|
>{{ props.info?.media.title || props.info?.name }}
|
||||||
|
{{ props.info?.season_episode }}</VCardTitle
|
||||||
|
>
|
||||||
|
|
||||||
<VCardSubtitle class="break-all whitespace-normal line-clamp-2 overflow-hidden text-ellipsis ...">
|
<VCardSubtitle
|
||||||
|
class="break-all whitespace-normal line-clamp-2 overflow-hidden text-ellipsis ..."
|
||||||
|
>
|
||||||
{{ props.info?.title }}
|
{{ props.info?.title }}
|
||||||
</VCardSubtitle>
|
</VCardSubtitle>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user