mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-04 23:18:44 +08:00
fix ui
This commit is contained in:
@@ -78,7 +78,7 @@ async function handleAddSubscribe() {
|
|||||||
|
|
||||||
if (seasonInfos.value.length === 1) {
|
if (seasonInfos.value.length === 1) {
|
||||||
// 添加订阅
|
// 添加订阅
|
||||||
addSubscribe()
|
addSubscribe(1)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// 检查各季的缺失状态
|
// 检查各季的缺失状态
|
||||||
@@ -108,9 +108,9 @@ async function addSubscribe(season = 0) {
|
|||||||
try {
|
try {
|
||||||
// 是否洗版
|
// 是否洗版
|
||||||
let best_version = isExists.value ? 1 : 0
|
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
|
// 请求API
|
||||||
const result: { [key: string]: any } = await api.post('subscribe', {
|
const result: { [key: string]: any } = await api.post('subscribe', {
|
||||||
name: props.media?.title,
|
name: props.media?.title,
|
||||||
|
|||||||
@@ -34,6 +34,17 @@ onMounted(() => {
|
|||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<VCard title="实时日志">
|
<VCard title="实时日志">
|
||||||
<VCardText>
|
<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">
|
<div v-for="(log, i) in logs" :key="i">
|
||||||
{{ log }}
|
{{ log }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user