🎨 接口数据结构变更
This commit is contained in:
parent
23b52a1c2f
commit
4d5f95f7dd
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user