NEZ-2129 fix: 编辑asset是 选择 parent Asset 可以选择自身

This commit is contained in:
zhangyu
2022-08-12 16:27:31 +08:00
parent df25109cd5
commit 4a6f9f2fcf

View File

@@ -638,7 +638,7 @@ export default {
return new Promise(resolve => {
this.$get(this.url, { pageSize: -1, vmh: 1 }).then(response => {
if (response.code === 200) {
this.options.parentAssetOptions = response.data.list
this.options.parentAssetOptions = response.data.list.filter(item => item.id !== this.editAsset.id)
}
resolve()
})