1
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-06-04 15:58:30 +08:00
parent 122f333c77
commit 386901316d
1 changed files with 3 additions and 6 deletions

View File

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