Commit f0a0c9e7 authored by 高宇's avatar 高宇

优化级联菜单用户体验1;

parent af8b3205
......@@ -236,19 +236,9 @@
this.loading = false
})
},
updateOptions (res) {
res.forEach(item => {
if (item.itemKey) {
item.cascader = []
}
})
console.log(res)
return res
},
getFilter () {
requestAPI(api.getFilter).then(res => {
this.filter = this.updateOptions(res)
console.log(this.filter)
this.filter = res
})
}
},
......
......@@ -130,6 +130,7 @@
val.forEach(item => {
if (item.itemKey) {
this.$set(this.clientForm, item.itemKey, '')
this.$set(item, 'cascader', [])
}
this.$set(this.clientForm, item.key, '')
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment