From 8aa19b2ac450f74fe9d988a9c4b70236b161f481 Mon Sep 17 00:00:00 2001 From: linju Date: Mon, 23 Oct 2023 16:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E8=AD=A6=E5=91=8A=EF=BC=8C?= =?UTF-8?q?=E5=BC=B9=E5=87=BA=E5=BC=8F=E4=BB=A3=E7=A0=81=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=EF=BC=8C=E4=B8=8D=E5=86=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?code=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/alertCode/alertCode.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/alertCode/alertCode.vue b/components/alertCode/alertCode.vue index 0bc2d15..65d403a 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 }, -- GitLab