Commit f0a0c9e7 authored by 高宇's avatar 高宇

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

parent af8b3205
...@@ -236,19 +236,9 @@ ...@@ -236,19 +236,9 @@
this.loading = false this.loading = false
}) })
}, },
updateOptions (res) {
res.forEach(item => {
if (item.itemKey) {
item.cascader = []
}
})
console.log(res)
return res
},
getFilter () { getFilter () {
requestAPI(api.getFilter).then(res => { requestAPI(api.getFilter).then(res => {
this.filter = this.updateOptions(res) this.filter = res
console.log(this.filter)
}) })
} }
}, },
......
...@@ -130,6 +130,7 @@ ...@@ -130,6 +130,7 @@
val.forEach(item => { val.forEach(item => {
if (item.itemKey) { if (item.itemKey) {
this.$set(this.clientForm, item.itemKey, '') this.$set(this.clientForm, item.itemKey, '')
this.$set(item, 'cascader', [])
} }
this.$set(this.clientForm, item.key, '') 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