mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-12 02:21:06 +08:00
fix ui
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user