diff --git a/src/components/dialog/SubscribeHistoryDialog.vue b/src/components/dialog/SubscribeHistoryDialog.vue index 60c8b4c0..9dec2038 100644 --- a/src/components/dialog/SubscribeHistoryDialog.vue +++ b/src/components/dialog/SubscribeHistoryDialog.vue @@ -42,6 +42,7 @@ const progressText = ref('正在重新订阅...') // 调用API查询列表 async function loadHistory({ done }: { done: any }) { + console.log('🚀 ~ loadHistory ~ loadHistory:', loadHistory) // 如果正在加载中,直接返回 if (loading.value) { done('ok') @@ -52,6 +53,15 @@ 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, @@ -145,62 +155,65 @@ const dropdownItems = ref([ } " /> - + +