This commit is contained in:
yanran200730
2022-01-25 17:09:18 +08:00
parent 6e0c8efbf4
commit 145c1bb2d2
2 changed files with 9 additions and 21 deletions

View File

@@ -23,7 +23,7 @@
<script>
import RenderElement from '../designer/components/RenderElement'
// import AppGridDV from '../../../project/dv/apps/AppGridDV'
// import AppGridDV from '../../../project/dv/apps/AppGridDV'
export default {
name: 'AppGigscreenViewer',

View File

@@ -394,27 +394,15 @@
}
const node = this.$refs.VueOkrTree.getNode(id)
this.$refs.VueOkrTree.append({
id: new Date().getTime(),
label: '子节点',
userList: userList || []
}, node)
this.$refs.VueOkrTree.append({
id: new Date().getTime(),
label: '子节点',
userList: userList || []
}, node)
this.$nextTick(() => {
this.autoScale()
})
if (userList.length) {
this.$refs.VueOkrTree.append({
id: new Date().getTime(),
label: '子节点',
userList: userList || []
}, node)
this.$nextTick(() => {
this.autoScale()
})
}
this.$nextTick(() => {
this.autoScale()
})
}
})
},