提交 8aa19b2a 编写于 作者: DCloud_JSON's avatar DCloud_JSON

过滤警告,弹出式代码浏览界面,不再显示code message

上级 74618c41
...@@ -47,6 +47,16 @@ ...@@ -47,6 +47,16 @@
}, },
methods: { methods: {
open(codes) { open(codes) {
if('errCode' in codes){
// 为过滤警告,不在弹出请求返回的code message
try{
delete codes.code
delete codes.message
delete codes.affectedDocs
}catch(e){
// console.log(e);
}
}
this.codes = purifyCodes(codes) this.codes = purifyCodes(codes)
this.isShow = true this.isShow = true
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册