mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
无用注释
This commit is contained in:
parent
d6a4dc7d11
commit
00a93ab9bf
@ -241,7 +241,7 @@ import flowableModdleExtension from './plugins/extension-moddle/flowable'
|
|||||||
// 引入json转换与高亮
|
// 引入json转换与高亮
|
||||||
// import xml2js from 'xml-js'
|
// import xml2js from 'xml-js'
|
||||||
import xml2js from 'fast-xml-parser'
|
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 hljs from 'highlight.js/lib/highlight'
|
||||||
// import 'highlight.js/styles/github-gist.css'
|
// import 'highlight.js/styles/github-gist.css'
|
||||||
@ -636,11 +636,11 @@ const previewProcessJson = () => {
|
|||||||
bpmnModeler.saveXML({ format: true }).then(({ xml }) => {
|
bpmnModeler.saveXML({ format: true }).then(({ xml }) => {
|
||||||
console.log(xml, 'xml')
|
console.log(xml, 'xml')
|
||||||
|
|
||||||
const rootNode = parseXmlString(xml)
|
// const rootNode = parseXmlString(xml)
|
||||||
console.log(rootNode, 'rootNoderootNode')
|
// console.log(rootNode, 'rootNoderootNode')
|
||||||
const rootNodes = new XmlNode(XmlNodeType.Root)
|
// const rootNodes = new XmlNode(XmlNodeType.Root)
|
||||||
rootNodes.toJsObject()
|
// rootNodes.toJsObject()
|
||||||
console.log(JSON.stringify(rootNodes), ';;;;;;;;;;;;;;;')
|
// console.log(JSON.stringify(rootNodes), ';;;;;;;;;;;;;;;')
|
||||||
|
|
||||||
const parser = new xml2js.XMLParser()
|
const parser = new xml2js.XMLParser()
|
||||||
let jObj = parser.parse(xml)
|
let jObj = parser.parse(xml)
|
||||||
|
Loading…
Reference in New Issue
Block a user