Commit 662d03d2 authored by 柴相国's avatar 柴相国

修改文档新建报错

parent 2513cb01
......@@ -5,6 +5,7 @@
<div class="folderBox">
<component
:is="curCom"
v-if="curCom"
ref="folder"
level-one-disable
:readonly="true"
......@@ -36,11 +37,20 @@ export default {
selectNode: null
}
},
created() {
this.$utils.loadComponent('dee-doc', '/DxDocumentFolder', 'privateComponents').then(res => {
this.curCom = res
})
watch: {
dialogVisible: {
handler: async function(val) {
if (val && !this.curCom) {
this.curCom = await this.$utils.loadComponent('dee-doc', '/DxDocumentFolder/index.vue', 'privateComponents')
}
}
}
},
// created() {
// this.$utils.loadComponent('dee-doc', '/DxDocumentFolder', 'privateComponents').then(res => {
// this.curCom = res
// })
// },
methods: {
open(dxContext) {
this.fullPath = ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment