mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
fix torrent ui
This commit is contained in:
@@ -647,6 +647,7 @@ onMounted(() => {
|
|||||||
<VListItemTitle>查看详情</VListItemTitle>
|
<VListItemTitle>查看详情</VListItemTitle>
|
||||||
</VListItem>
|
</VListItem>
|
||||||
<VListItem
|
<VListItem
|
||||||
|
v-if="item.raw.enclosure?.startsWith('http')"
|
||||||
variant="plain"
|
variant="plain"
|
||||||
@click="downloadTorrentFile(item.raw.enclosure)"
|
@click="downloadTorrentFile(item.raw.enclosure)"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -122,26 +122,6 @@ function getVolumeFactorClass(downloadVolume: number, uploadVolume: number) {
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getSiteIcon()
|
getSiteIcon()
|
||||||
})
|
})
|
||||||
|
|
||||||
// 弹出菜单
|
|
||||||
const dropdownItems = ref([
|
|
||||||
{
|
|
||||||
title: '查看详情',
|
|
||||||
value: 1,
|
|
||||||
props: {
|
|
||||||
prependIcon: 'mdi-information',
|
|
||||||
click: openTorrentDetail,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '下载种子',
|
|
||||||
value: 2,
|
|
||||||
props: {
|
|
||||||
prependIcon: 'mdi-download',
|
|
||||||
click: downloadTorrentFile,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
])
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -180,15 +160,23 @@ const dropdownItems = ref([
|
|||||||
>
|
>
|
||||||
<VList>
|
<VList>
|
||||||
<VListItem
|
<VListItem
|
||||||
v-for="(item, i) in dropdownItems"
|
|
||||||
:key="i"
|
|
||||||
variant="plain"
|
variant="plain"
|
||||||
@click="item.props.click"
|
@click="openTorrentDetail()"
|
||||||
>
|
>
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<VIcon :icon="item.props.prependIcon" />
|
<VIcon icon="mdi-information" />
|
||||||
</template>
|
</template>
|
||||||
<VListItemTitle v-text="item.title" />
|
<VListItemTitle>查看详情</VListItemTitle>
|
||||||
|
</VListItem>
|
||||||
|
<VListItem
|
||||||
|
v-if="props.torrent?.torrent_info?.enclosure?.startsWith('http')"
|
||||||
|
variant="plain"
|
||||||
|
@click="downloadTorrentFile()"
|
||||||
|
>
|
||||||
|
<template #prepend>
|
||||||
|
<VIcon icon="mdi-download" />
|
||||||
|
</template>
|
||||||
|
<VListItemTitle>下载种子</VListItemTitle>
|
||||||
</VListItem>
|
</VListItem>
|
||||||
</VList>
|
</VList>
|
||||||
</VMenu>
|
</VMenu>
|
||||||
|
|||||||
Reference in New Issue
Block a user