From e06854d8b11db2cde111db70d527c68c27ccf90a Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 2 Feb 2024 18:38:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=85=A8=E5=B1=80):=20=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/http/Axios.ts | 9 ++-- .../components/business/ms-cascader/index.vue | 37 ++++++++------- .../case-management/caseReview/caseDetail.vue | 47 ++++++++++++------- .../caseReview/components/reviewForm.vue | 2 +- .../fileManagement/components/rightBox.vue | 2 +- .../fileManagement/components/storageList.vue | 14 ++++-- .../system/log/components/logCards.vue | 11 +++-- .../system/user/components/inviteModal.vue | 1 + .../src/views/setting/system/user/index.vue | 12 ++++- 9 files changed, 85 insertions(+), 50 deletions(-) diff --git a/frontend/src/api/http/Axios.ts b/frontend/src/api/http/Axios.ts index c77242cd53..deb073b706 100644 --- a/frontend/src/api/http/Axios.ts +++ b/frontend/src/api/http/Axios.ts @@ -81,7 +81,7 @@ export class MSAxios { * @description: 文件上传 */ uploadFile( - config: AxiosRequestConfig, + config: AxiosRequestConfig & RequestOptions, params: UploadFileParams, customFileKey = '', isMultiple = false @@ -110,7 +110,6 @@ export class MSAxios { const { requestOptions } = this.options; const opt = { ...requestOptions, isTransformResponse: false }; - const { transformRequestHook } = transform || {}; return new Promise((resolve, reject) => { this.axiosInstance @@ -120,8 +119,10 @@ export class MSAxios { data: formData, headers: { 'Content-type': ContentTypeEnum.FORM_DATA, - // @ts-ignore - 'ignoreCancelToken': true, // 文件上传请求不需要添加到pending中,以免路由切换导致文件上传请求被取消 + }, + // @ts-ignore + requestOptions: { + ignoreCancelToken: true, // 文件上传请求不需要添加到pending中,以免路由切换导致文件上传请求被取消 }, }) .then((res: AxiosResponse) => { diff --git a/frontend/src/components/business/ms-cascader/index.vue b/frontend/src/components/business/ms-cascader/index.vue index 86da8057e5..ec291faab2 100644 --- a/frontend/src/components/business/ms-cascader/index.vue +++ b/frontend/src/components/business/ms-cascader/index.vue @@ -2,7 +2,7 @@ @@ -44,7 +44,7 @@ @@ -450,7 +454,6 @@ title: 'system.log.operateName', dataIndex: 'content', slotName: 'content', - showTooltip: true, width: 150, }, { diff --git a/frontend/src/views/setting/system/user/components/inviteModal.vue b/frontend/src/views/setting/system/user/components/inviteModal.vue index f7dd618c01..1cf9dfdf7e 100644 --- a/frontend/src/views/setting/system/user/components/inviteModal.vue +++ b/frontend/src/views/setting/system/user/components/inviteModal.vue @@ -4,6 +4,7 @@ :title="t('system.user.invite')" title-align="start" class="ms-modal-form ms-modal-medium" + @close="cancelInvite" >