diff --git a/components/alertCode/alertCode.vue b/components/alertCode/alertCode.vue index 0bc2d15965b96f90a9052e4781ca7a05d5c77b3c..65d403acf716a2bdcdfbdf597ebdcdf2b364d20c 100644 --- a/components/alertCode/alertCode.vue +++ b/components/alertCode/alertCode.vue @@ -47,6 +47,16 @@ }, methods: { 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.isShow = true },