Commit f7d685c9 authored by 盖献康's avatar 盖献康

bug - loading

parent dac3246c
...@@ -199,10 +199,14 @@ export default { ...@@ -199,10 +199,14 @@ export default {
this.entryLoading = false this.entryLoading = false
console.log('aaaa', res) console.log('aaaa', res)
const list = res.rows const list = res.rows
const lastData = list.pop() if (res.rows.length > 0) {
this.entryContract.push(lastData) const lastData = list.pop()
this.entryContract = this.entryContract.filter((obj, index, self) => index === self.findIndex((t) => (t.id === obj.id))) this.entryContract.push(lastData)
this.id = this.entryContract[0].id this.entryContract = this.entryContract.filter((obj, index, self) => index === self.findIndex((t) => (t.id === obj.id)))
this.id = this.entryContract[0].id
} else {
this.entryContract = []
}
}) })
}, },
getContract() { getContract() {
......
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