const arr = []
this.todoLeftList.forEach((item) => {
arr.push(item.srcSystemCode)
})
const index = arr.indexOf('zldc')
if (index) {
const first = this.todoLeftList.splice(index, 1)[0]
this.todoLeftList.unshift(first)
}
const arr = []标签:index,第一位,const,数组,arr,item,放置,todoLeftList,first From: https://www.cnblogs.com/lucky06y/p/17845167.html
this.todoLeftList.forEach((item) => {
arr.push(item.srcSystemCode)
})
const index = arr.indexOf('zldc')
if (index) {
const first = this.todoLeftList.splice(index, 1)[0]
this.todoLeftList.unshift(first)
}