🎨 接口数据结构变更

This commit is contained in:
ronger 2022-07-26 21:04:19 +08:00
parent 23b52a1c2f
commit 4d5f95f7dd
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ export const actions = {
let currentData = JSON.parse(JSON.stringify(state)).list.data let currentData = JSON.parse(JSON.stringify(state)).list.data
let updateState = state.updateState let updateState = state.updateState
if (!updateState) { if (!updateState) {
if (Number(params.page) === currentData?.pagination.currentPage) { if (Number(params.page) === currentData?.pageNum) {
commit('updateListFetching', false) commit('updateListFetching', false)
return return
} }

View File

@ -76,7 +76,7 @@ export const actions = {
// 清空已有数据 // 清空已有数据
commit('updateListFetching', true) commit('updateListFetching', true)
let currentData = JSON.parse(JSON.stringify(state)).list.data let currentData = JSON.parse(JSON.stringify(state)).list.data
if (Number(params.page) === currentData.pagination.currentPage) { if (Number(params.page) === currentData.pageNum) {
commit('updateListFetching', false) commit('updateListFetching', false)
return return
} }