数组中的指定某一项放置第一位
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 = []
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)
}

浙公网安备 33010602011771号