From c8eead9f82ab388cff511e83e9488711dba05233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Wed, 22 Feb 2023 17:25:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=9F=A5=E7=9C=8B=E5=BC=B9=E5=87=BA=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AccountListTable/ViewSecret.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/AccountListTable/ViewSecret.vue b/src/components/AccountListTable/ViewSecret.vue index 5b9609df9..4444bd9b4 100644 --- a/src/components/AccountListTable/ViewSecret.vue +++ b/src/components/AccountListTable/ViewSecret.vue @@ -110,7 +110,14 @@ export default { }, mounted() { const url = `/api/v1/accounts/account-secrets/${this.account.id}/histories/?limit=1` - this.$axios.get(url).then(resp => { + this.$axios.get(url, + { + validateStatus: (status) => { + if (status === 400) return 200 + return status + } + } + ).then(resp => { this.historyCount = resp.count }) },