Commit f9e29d92 authored by nick zheng's avatar nick zheng

fix: 更新我的作品数据

parent 0fb6da5b
...@@ -68,11 +68,16 @@ const { pause: pauseIntervalFn, resume: resumeIntervalFn } = useIntervalFn( ...@@ -68,11 +68,16 @@ const { pause: pauseIntervalFn, resume: resumeIntervalFn } = useIntervalFn(
async () => { async () => {
if (videoWorkTableLoading.value) return if (videoWorkTableLoading.value) return
await fetchGetTaskList<VideoWorkItem[]>({ const res = await fetchGetTaskList<VideoWorkItem[]>({
taskType: currentSelectedTaskType.value, taskType: currentSelectedTaskType.value,
taskName: searchQuery.value, taskName: searchQuery.value,
pagingInfo: pagingInfo.value, pagingInfo: pagingInfo.value,
}) })
if (res.code === 0) {
videoWorkList.value = res.data
pagingInfo.value = res.pagingInfo as PaginationInfo
}
}, },
2000, 2000,
{ immediateCallback: false, immediate: false }, { immediateCallback: false, immediate: false },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment