当前位置:网站首页>Error: required args <xml=string> at error (index.esm.js?93ce:68:1) at Parser.parse (index.e
Error: required args <xml=string> at error (index.esm.js?93ce:68:1) at Parser.parse (index.e
2022-08-07 12:59:00 【-耿瑞-】
这个问题主要还是异步处理 还没有捕获异常的问题
原本我是这样写的 就报了这个错误
createNewDiagram () {
this.bpmnModeler.importXML(xmlStr, (err) => {
if (err) {
console.error(err)
}else{
this.success();
}
})
}
后面改成了
async createNewDiagram () {
try {
await this.bpmnModeler.importXML(xmlStr);
this.success();
} catch (err) {
console.log(err);
}
},
就解决问题了
边栏推荐
- 网安学习-应急响应1
- LeetCode高频题:最长公共子序列,玩游戏A和游戏B,两兄弟加起来最多可以获得多少奖品
- Tower of Hanoi program
- China University of Petroleum (Beijing) - "Drilling Fluid Technology Principle" Phase II Online Operation
- Postgresql logical backup tools pg_dump and pg_resotre learning
- 校园篮球网页作业成品 运动系列NBA篮球主题 学校篮球网页制作模板 学生简单体育运动网站设计成品
- ie浏览器的部分兼容性问题
- Anaconda的安装
- 【学习】代码里引入的包都是啥东西
- 【Unity入门计划】GameObject类(1)-GetComponent方法
猜你喜欢

vscode创建快捷键模板

代码随想录笔记_动态规划_518零钱兑换II

2. MongoDB 应用与开发-安装

动态内存管理

DiskGenius Installation Tutorial

Monthly MODIS NDVI images generated by GEE

Navicat连接mysql一段时间未操作之后卡住几秒

Configure code snippets in Visual Studio Code to easily generate code templates with shortcut keys

ESP8266-Arduino编程实例-MMA8451加速度计驱动

odoo社区版审批流
随机推荐
基于Gin的Go语言项目网盘实战解读
SkyWalking+.NET5初体验
机器学习实战(1)——概览
网上复制代码的坑
PyTorch 入门之旅
8.cuBLAS开发指南中文版--cuBLAS中的cublasGetMatrix()和cublasSetMatrix()
odoo community edition approval flow
中国石油大学(北京)-《油藏工程》第二阶段在线作业
odoo社区版审批流
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp)
I said that the MySQL joint index follows the leftmost prefix matching principle, the interviewer asked me to go back and wait for the notification
Character (string) and memory manipulation library functions
耗时 48 小时,小米工程师发明小米头箍,网友:变身孙悟空不是梦!
Interpretation of Gin-based Go language project network disk
Prometheus 自定义metrics
Linux - Install and Start MySQL on Linux Systems
心灵在旅行
Leetcode 47. 全排列 II
由GEE生成逐月MODIS的NDVI影像
4. 插件开发原理