优化
This commit is contained in:
parent
94d9adfe64
commit
79fe21fac5
@ -508,10 +508,8 @@
|
|||||||
this.list = this.invests
|
this.list = this.invests
|
||||||
if(item.index == 1){
|
if(item.index == 1){
|
||||||
let arr = this.incomes.map(item => {
|
let arr = this.incomes.map(item => {
|
||||||
if(item.info.hasOwnProperty('createTimestamp')){
|
const info ={...item.info,money:item.money,}
|
||||||
item.info.createTimes = item.info.createTimestamp
|
return info
|
||||||
}
|
|
||||||
return item.info
|
|
||||||
})
|
})
|
||||||
this.list = arr.sort((a, b) => b.createTimes - a.createTimes)
|
this.list = arr.sort((a, b) => b.createTimes - a.createTimes)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user