From 00a93ab9bf1622af68b32a2f1dddeaa57758fb35 Mon Sep 17 00:00:00 2001 From: gexinzhineng/gxzn27 <1348660141@qq.com> Date: Mon, 30 Jan 2023 10:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E7=94=A8=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../package/designer/ProcessDesigner.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue index b5e772925..5be0f9148 100644 --- a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue +++ b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue @@ -241,7 +241,7 @@ import flowableModdleExtension from './plugins/extension-moddle/flowable' // 引入json转换与高亮 // import xml2js from 'xml-js' import xml2js from 'fast-xml-parser' -import { XmlNode, XmlNodeType, parseXmlString } from 'steady-xml' +// import { XmlNode, XmlNodeType, parseXmlString } from 'steady-xml' // 代码高亮插件 // import hljs from 'highlight.js/lib/highlight' // import 'highlight.js/styles/github-gist.css' @@ -636,11 +636,11 @@ const previewProcessJson = () => { bpmnModeler.saveXML({ format: true }).then(({ xml }) => { console.log(xml, 'xml') - const rootNode = parseXmlString(xml) - console.log(rootNode, 'rootNoderootNode') - const rootNodes = new XmlNode(XmlNodeType.Root) - rootNodes.toJsObject() - console.log(JSON.stringify(rootNodes), ';;;;;;;;;;;;;;;') + // const rootNode = parseXmlString(xml) + // console.log(rootNode, 'rootNoderootNode') + // const rootNodes = new XmlNode(XmlNodeType.Root) + // rootNodes.toJsObject() + // console.log(JSON.stringify(rootNodes), ';;;;;;;;;;;;;;;') const parser = new xml2js.XMLParser() let jObj = parser.parse(xml)