调整tree的引入
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user