mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-08 01:06:41 +08:00
fix: 订阅历史记录不请求后端
This commit is contained in:
@@ -42,7 +42,6 @@ const progressText = ref('正在重新订阅...')
|
|||||||
|
|
||||||
// 调用API查询列表
|
// 调用API查询列表
|
||||||
async function loadHistory({ done }: { done: any }) {
|
async function loadHistory({ done }: { done: any }) {
|
||||||
console.log('🚀 ~ loadHistory ~ loadHistory:', loadHistory)
|
|
||||||
// 如果正在加载中,直接返回
|
// 如果正在加载中,直接返回
|
||||||
if (loading.value) {
|
if (loading.value) {
|
||||||
done('ok')
|
done('ok')
|
||||||
@@ -53,15 +52,6 @@ async function loadHistory({ done }: { done: any }) {
|
|||||||
try {
|
try {
|
||||||
// 设置加载中
|
// 设置加载中
|
||||||
loading.value = true
|
loading.value = true
|
||||||
const url = `subscribe/history/${props.type}`
|
|
||||||
const params = {
|
|
||||||
params: {
|
|
||||||
page: currentPage.value,
|
|
||||||
count: pageSize.value,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
console.log('history url:', url)
|
|
||||||
console.log('history params:', params)
|
|
||||||
currData.value = await api.get(`subscribe/history/${props.type}`, {
|
currData.value = await api.get(`subscribe/history/${props.type}`, {
|
||||||
params: {
|
params: {
|
||||||
page: currentPage.value,
|
page: currentPage.value,
|
||||||
|
|||||||
Reference in New Issue
Block a user