Commit 00a93ab9bf1622af68b32a2f1dddeaa57758fb35
1 parent
d6a4dc7d
无用注释
Showing
1 changed file
with
6 additions
and
6 deletions
yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue
| @@ -241,7 +241,7 @@ import flowableModdleExtension from './plugins/extension-moddle/flowable' | @@ -241,7 +241,7 @@ import flowableModdleExtension from './plugins/extension-moddle/flowable' | ||
| 241 | // 引入json转换与高亮 | 241 | // 引入json转换与高亮 |
| 242 | // import xml2js from 'xml-js' | 242 | // import xml2js from 'xml-js' |
| 243 | import xml2js from 'fast-xml-parser' | 243 | import xml2js from 'fast-xml-parser' |
| 244 | -import { XmlNode, XmlNodeType, parseXmlString } from 'steady-xml' | 244 | +// import { XmlNode, XmlNodeType, parseXmlString } from 'steady-xml' |
| 245 | // 代码高亮插件 | 245 | // 代码高亮插件 |
| 246 | // import hljs from 'highlight.js/lib/highlight' | 246 | // import hljs from 'highlight.js/lib/highlight' |
| 247 | // import 'highlight.js/styles/github-gist.css' | 247 | // import 'highlight.js/styles/github-gist.css' |
| @@ -636,11 +636,11 @@ const previewProcessJson = () => { | @@ -636,11 +636,11 @@ const previewProcessJson = () => { | ||
| 636 | bpmnModeler.saveXML({ format: true }).then(({ xml }) => { | 636 | bpmnModeler.saveXML({ format: true }).then(({ xml }) => { |
| 637 | console.log(xml, 'xml') | 637 | console.log(xml, 'xml') |
| 638 | 638 | ||
| 639 | - const rootNode = parseXmlString(xml) | ||
| 640 | - console.log(rootNode, 'rootNoderootNode') | ||
| 641 | - const rootNodes = new XmlNode(XmlNodeType.Root) | ||
| 642 | - rootNodes.toJsObject() | ||
| 643 | - console.log(JSON.stringify(rootNodes), ';;;;;;;;;;;;;;;') | 639 | + // const rootNode = parseXmlString(xml) |
| 640 | + // console.log(rootNode, 'rootNoderootNode') | ||
| 641 | + // const rootNodes = new XmlNode(XmlNodeType.Root) | ||
| 642 | + // rootNodes.toJsObject() | ||
| 643 | + // console.log(JSON.stringify(rootNodes), ';;;;;;;;;;;;;;;') | ||
| 644 | 644 | ||
| 645 | const parser = new xml2js.XMLParser() | 645 | const parser = new xml2js.XMLParser() |
| 646 | let jObj = parser.parse(xml) | 646 | let jObj = parser.parse(xml) |