@@ -90,13 +90,10 @@ export default {
|
||||
if (res.IsSuccess) {
|
||||
this.list = this.formatList(res.Result)
|
||||
let { tree, ids } = this.formatTree(res.Result);
|
||||
console.log(ids)
|
||||
this.tree = tree
|
||||
if (ids.length > 0) {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.tree.setCheckedKeys(ids)
|
||||
})
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.$refs.tree.setCheckedKeys(ids)
|
||||
})
|
||||
}
|
||||
} catch (err) {
|
||||
this.loading = false
|
||||
|
||||
Reference in New Issue
Block a user