fix: 订阅历史记录不请求后端

This commit is contained in:
machine
2024-10-21 22:46:04 +08:00
parent 7a97005524
commit fba0df8cb9

View File

@@ -42,7 +42,6 @@ const progressText = ref('正在重新订阅...')
// 调用API查询列表
async function loadHistory({ done }: { done: any }) {
console.log('🚀 ~ loadHistory ~ loadHistory:', loadHistory)
// 如果正在加载中,直接返回
if (loading.value) {
done('ok')
@@ -53,15 +52,6 @@ async function loadHistory({ done }: { done: any }) {
try {
// 设置加载中
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}`, {
params: {
page: currentPage.value,