mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
refactor(SubscribeListView): 移除不必要的 VPullToRefresh 组件,简化订阅列表渲染逻辑
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import draggable from 'vuedraggable'
|
import draggable from 'vuedraggable'
|
||||||
import { VPullToRefresh } from 'vuetify/labs/VPullToRefresh'
|
|
||||||
import api from '@/api'
|
import api from '@/api'
|
||||||
import type { Subscribe } from '@/api/types'
|
import type { Subscribe } from '@/api/types'
|
||||||
import NoDataFound from '@/components/NoDataFound.vue'
|
import NoDataFound from '@/components/NoDataFound.vue'
|
||||||
@@ -138,7 +137,6 @@ onActivated(async () => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<LoadingBanner v-if="!isRefreshed" class="mt-12" />
|
<LoadingBanner v-if="!isRefreshed" class="mt-12" />
|
||||||
<VPullToRefresh v-model="loading" @load="onRefresh">
|
|
||||||
<draggable
|
<draggable
|
||||||
v-if="displayList.length > 0"
|
v-if="displayList.length > 0"
|
||||||
v-model="displayList"
|
v-model="displayList"
|
||||||
@@ -158,7 +156,6 @@ onActivated(async () => {
|
|||||||
error-title="没有订阅"
|
error-title="没有订阅"
|
||||||
error-description="请通过搜索添加电影、电视剧订阅。"
|
error-description="请通过搜索添加电影、电视剧订阅。"
|
||||||
/>
|
/>
|
||||||
</VPullToRefresh>
|
|
||||||
<!-- 底部操作按钮 -->
|
<!-- 底部操作按钮 -->
|
||||||
<div>
|
<div>
|
||||||
<VFab
|
<VFab
|
||||||
|
|||||||
Reference in New Issue
Block a user