diff --git a/src/dgiot/components/DgiotVditor/index.vue b/src/dgiot/components/DgiotVditor/index.vue index 300fe241f9..3b41e7c97d 100644 --- a/src/dgiot/components/DgiotVditor/index.vue +++ b/src/dgiot/components/DgiotVditor/index.vue @@ -8,10 +8,7 @@ :model="Form" > - - - - 更新 + 保存
diff --git a/src/views/CloudFunction/doc/index.vue b/src/views/CloudFunction/doc/index.vue index 2a1b75aa29..8b895488eb 100644 --- a/src/views/CloudFunction/doc/index.vue +++ b/src/views/CloudFunction/doc/index.vue @@ -52,8 +52,11 @@ setTreeFlag: 'settings/setTreeFlag', }), async handleNodeClick(data) { - this.ruleForm = await getArticle(data.objectId) - this.$refs.vditor.flagType = 'editor' + // 根据类型显示文档 + if (data.type == 'page') { + this.ruleForm = await getArticle(data.objectId) + this.$refs.vditor.flagType = 'editor' + } // this.$refs.vditor.flagType == 'preview' // ? (this.$refs.vditor.flagType = 'editor') // : (this.$refs.vditor.flagType = 'preview') @@ -62,7 +65,7 @@ const params = { province: '', class: 'Article', - filter: '{"keys":["parent","name"],"where":{}}', + filter: '{"keys":["parent","name","type"],"where":{}}', parent: 'parent', } const { results = [] } = await post_tree(params) @@ -227,7 +230,13 @@ @node-click="handleNodeClick" > - {{ data.name }} + + {{ data.name }} +