修复最大页数计算出错的bug

This commit is contained in:
chuzhongzai 2022-10-12 17:39:23 +08:00
parent e7d8997bdf
commit 9672c045ca

View File

@ -385,10 +385,10 @@ const getters = {
if(state.searchTask.length !== 0){ if(state.searchTask.length !== 0){
tasks = state.searchTask tasks = state.searchTask
} }
else if(state.showHistory === "gallery") else if(state.showType === "gallery")
if(state.totalGalleryTask.length !== 0) if(state.totalGalleryTask.length !== 0)
tasks = state.totalGalleryTask tasks = state.totalGalleryTask
else if(state.showHistory === "video") else if(state.showType === "video")
if(state.totalVideoTask.length) if(state.totalVideoTask.length)
tasks = state.totalVideoTask tasks = state.totalVideoTask
if(!tasks) if(!tasks)