先版本回退一下

This commit is contained in:
aixianling
2023-03-24 10:19:37 +08:00
parent d3b220ab50
commit acf90b3d7d

View File

@@ -101,10 +101,7 @@ export default {
header: levelLabels[i], list header: levelLabels[i], list
})).slice(Math.max(0, this.startLevel), this.endLevel) })).slice(Math.max(0, this.startLevel), this.endLevel)
if (this.startLevel > 0 && ops.length > 0) { if (this.startLevel > 0 && ops.length > 0) {
const tmp = this.$copy(ops[0]?.list?.[0] || {}) ops[0].list = ops[0].list.filter(e => e.id == this.selectedMap[this.startLevel])
const prev = +tmp.type - 1
const prevId = tmp.parentId
prev > -1 && ops.unshift({header: levelLabels[prev], list: [this.hashMap[prevId]]})
} }
return ops return ops
} }