This commit is contained in:
jxxghp
2023-08-04 19:17:10 +08:00
parent 6dbbef2c4c
commit 7beb046d7b
2 changed files with 14 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ async function handleAddSubscribe() {
if (seasonInfos.value.length === 1) {
// 添加订阅
addSubscribe()
addSubscribe(1)
}
else {
// 检查各季的缺失状态
@@ -108,9 +108,9 @@ async function addSubscribe(season = 0) {
try {
// 是否洗版
let best_version = isExists.value ? 1 : 0
if (props.media?.type === '电视剧' && props.media?.tmdb_id)
if (season && props.media?.tmdb_id)
// 全部存在时洗版
best_version = (!seasonsNotExisted.value[season] || seasonsNotExisted.value[season] === 0) ? 1 : 0
best_version = !seasonsNotExisted.value[season] ? 1 : 0
// 请求API
const result: { [key: string]: any } = await api.post('subscribe', {
name: props.media?.title,

View File

@@ -34,6 +34,17 @@ onMounted(() => {
<VCol cols="12">
<VCard title="实时日志">
<VCardText>
<div
v-if="logs.length === 0"
class="mt-5 w-full text-center text-gray-500 text-sm flex flex-col items-center"
>
<VProgressCircular
size="48"
indeterminate
color="primary"
/>
<span class="mt-3">正在刷新 ...</span>
</div>
<div v-for="(log, i) in logs" :key="i">
{{ log }}
</div>