From e6464ca73bba76d0151a3a759ad81679ef916915 Mon Sep 17 00:00:00 2001 From: Aresn Date: Fri, 7 Jun 2024 11:00:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/i/Exception.vue | 4 ++-- components/i/search/ExtraInfo.vue | 21 +++++++++++---------- components/prose/Chart.global.vue | 26 ++++++++++++-------------- 3 files changed, 25 insertions(+), 26 deletions(-) diff --git a/components/i/Exception.vue b/components/i/Exception.vue index 448aaa2..7416bee 100644 --- a/components/i/Exception.vue +++ b/components/i/Exception.vue @@ -30,7 +30,7 @@ const errorTitle = computed(() => { if (!title) { const code = props.code if (code === 404) title = 'Not found' - else if (code === 500) title = 'Error' + else if (code === 500 || code === 502) title = 'Error' else if (code === 403) title= 'Forbidden' } return title @@ -40,7 +40,7 @@ const errorDescription = computed(() => { if (!description) { const code = props.code if (code === 404) description = '抱歉,当前访问的内容不存在或被删除' - else if (code === 500) description = '抱歉,当前内容出现错误' + else if (code === 500 || code === 502) description = '抱歉,当前内容出现错误' else if (code === 403) description= '抱歉,您没有权限访问当前内容' } return description diff --git a/components/i/search/ExtraInfo.vue b/components/i/search/ExtraInfo.vue index 8669853..e9a264c 100644 --- a/components/i/search/ExtraInfo.vue +++ b/components/i/search/ExtraInfo.vue @@ -8,16 +8,17 @@