From 7346c0fb0994335a420ce5789e3ca81aff57b735 Mon Sep 17 00:00:00 2001 From: lijingjia Date: Fri, 25 Oct 2024 18:29:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E8=88=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/request.ts | 7 +++++-- .../seaexport/detail/components/ladingInfo.tsx | 14 +++++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/utils/request.ts b/src/utils/request.ts index 748a0696..78870961 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -88,8 +88,11 @@ service.interceptors.response.use( $message.error(error.response.statusText) } } else { - console.log(error) - $message.error(error.message); + if (error.message == 'Bad Gateway' || error.message == 'Service Unavailable') { + $message.error('系统正在升级,请稍后再试...'); + } else { + $message.error(error.message); + } } return Promise.reject(error) } diff --git a/src/views/operation/seaexport/detail/components/ladingInfo.tsx b/src/views/operation/seaexport/detail/components/ladingInfo.tsx index c56a80a2..56ca368b 100644 --- a/src/views/operation/seaexport/detail/components/ladingInfo.tsx +++ b/src/views/operation/seaexport/detail/components/ladingInfo.tsx @@ -60,9 +60,9 @@ export const formSchema1: FormSchema[] = [ formModel.shipperContent = null formModel.shipper = '' } - }, + } } - }, + } }, { label: ' ', @@ -75,15 +75,15 @@ export const formSchema1: FormSchema[] = [ slice: [30, 35, 40], onCut: (v) => { formModel.shipperContent = v - }, + } } - }, + } }, { label: '', field: 'consigneeId', component: 'Input', - show: false, + show: false }, { label: '收货人', @@ -114,9 +114,9 @@ export const formSchema1: FormSchema[] = [ formModel.consignee = null formModel.consigneeContent = '' } - }, + } } - }, + } }, { label: ' ',