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

修改文档新建报错

parent 2513cb01
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<div class="folderBox"> <div class="folderBox">
<component <component
:is="curCom" :is="curCom"
v-if="curCom"
ref="folder" ref="folder"
level-one-disable level-one-disable
:readonly="true" :readonly="true"
...@@ -36,11 +37,20 @@ export default { ...@@ -36,11 +37,20 @@ export default {
selectNode: null selectNode: null
} }
}, },
created() { watch: {
this.$utils.loadComponent('dee-doc', '/DxDocumentFolder', 'privateComponents').then(res => { dialogVisible: {
this.curCom = res 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: { methods: {
open(dxContext) { open(dxContext) {
this.fullPath = '' 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