flat:暂存

This commit is contained in:
Apcallover
2024-05-10 09:25:21 +08:00
parent 26f1b583d9
commit 11e07184a7
2 changed files with 9 additions and 6 deletions

View File

@@ -417,10 +417,11 @@ export default {
if (resData.data.code === 200) { if (resData.data.code === 200) {
const timed = createTime - Date.now() > 0 ? createTime - Date.now() : 0 const timed = createTime - Date.now() > 0 ? createTime - Date.now() : 0
setTimeout(() => { setTimeout(() => {
const {records, total, size, current} = resData.data.data // const {records, total, size, current} = resData.data.data
this.rightLoading = false this.rightLoading = false
this.rightDataList = records // this.rightDataList = records
this.rightPages = {total, size, currentPage: current} this.rightPages = {total: resData.data.data.length, currentPage: 1}
this.rightDataList = resData.data.data
}, timed) }, timed)
} }
}, },

View File

@@ -417,10 +417,12 @@ export default {
if (resData.data.code === 200) { if (resData.data.code === 200) {
const timed = createTime - Date.now() > 0 ? createTime - Date.now() : 0 const timed = createTime - Date.now() > 0 ? createTime - Date.now() : 0
setTimeout(() => { setTimeout(() => {
const {records, total, size, current} = resData.data.data // const {records, total, size, current} = resData.data.data
this.rightLoading = false this.rightLoading = false
this.rightDataList = records // this.rightDataList = records
this.rightPages = {total, size, currentPage: current} // this.rightPages = {total, size, currentPage: current}
this.rightPages = {total: resData.data.data.length, currentPage: 1}
this.rightDataList = resData.data.data
}, timed) }, timed)
} }
}, },