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

bug - loading

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