mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
fix
This commit is contained in:
@@ -99,8 +99,8 @@ const downloadTorrentFile = async () => {
|
|||||||
window.open(torrent.value?.enclosure, "_blank");
|
window.open(torrent.value?.enclosure, "_blank");
|
||||||
};
|
};
|
||||||
|
|
||||||
// 促销Chip颜色
|
// 促销Chip类
|
||||||
const getVolumeFactorColor = (downloadVolume: number, uploadVolume: number) => {
|
const getVolumeFactorClass = (downloadVolume: number, uploadVolume: number) => {
|
||||||
if (downloadVolume === 0) {
|
if (downloadVolume === 0) {
|
||||||
return "text-white bg-lime-500";
|
return "text-white bg-lime-500";
|
||||||
} else if (downloadVolume < 1) {
|
} else if (downloadVolume < 1) {
|
||||||
@@ -189,7 +189,7 @@ const dropdownItems = ref([
|
|||||||
<VChip v-if="meta?.resource_team" variant="elevated" size="small" class="me-1 mb-1 text-white bg-cyan-500">
|
<VChip v-if="meta?.resource_team" variant="elevated" size="small" class="me-1 mb-1 text-white bg-cyan-500">
|
||||||
{{ meta?.resource_team }}
|
{{ meta?.resource_team }}
|
||||||
</VChip>
|
</VChip>
|
||||||
<VChip v-if="torrent?.downloadvolumefactor !== 1 || torrent?.uploadvolumefactor !== 1" :class="getVolumeFactorColor(torrent?.downloadvolumefactor, torrent?.uploadvolumefactor)
|
<VChip v-if="torrent?.downloadvolumefactor !== 1 || torrent?.uploadvolumefactor !== 1" :class="getVolumeFactorClass(torrent?.downloadvolumefactor, torrent?.uploadvolumefactor)
|
||||||
" variant="elevated" size="small" class="me-1 mb-1">
|
" variant="elevated" size="small" class="me-1 mb-1">
|
||||||
{{ torrent?.volume_factor }}
|
{{ torrent?.volume_factor }}
|
||||||
</VChip>
|
</VChip>
|
||||||
@@ -214,7 +214,10 @@ const dropdownItems = ref([
|
|||||||
)
|
)
|
||||||
">
|
">
|
||||||
<template #append>
|
<template #append>
|
||||||
<VBadge color="primary" :content="item.torrent_info?.seeders" inline size="small"></VBadge>
|
<VBadge color="primary" :content="`↑${item.torrent_info?.seeders}`" inline size="small"></VBadge>
|
||||||
|
<VBadge :content="item.torrent_info?.volume_factor" inline size="small"
|
||||||
|
v-if="item.torrent_info?.downloadvolumefactor !== 1 || item.torrent_info?.uploadvolumefactor !== 1">
|
||||||
|
</VBadge>
|
||||||
</template>
|
</template>
|
||||||
{{ item.torrent_info.site_name }}
|
{{ item.torrent_info.site_name }}
|
||||||
</VChip>
|
</VChip>
|
||||||
|
|||||||
Reference in New Issue
Block a user