调整tree的引入

This commit is contained in:
aixianling
2023-05-25 15:52:41 +08:00
parent ad8f554ba2
commit 7051b07c8d
2 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,6 @@
<script>
import {mapState} from 'vuex'
import Tree from "../../common/tree";
export default {
name: "selectDept",
@@ -64,7 +63,7 @@ export default {
this.$http.post(`/app/wxcp/wxdepartment/listAll?name=${this.name}`).then(res => {
if (res?.data) {
res.data.forEach(e => e.isCheck = this.selected.includes(e[this.nodeKey]))
this.depts = new Tree(res.data, {parent: 'parentid'})
this.depts = new this.$tree(res.data, {parent: 'parentid'})
this.list = this.depts.tree
}
})