From 5714a1275a230dc8cb4f76a961701a07e76555cf Mon Sep 17 00:00:00 2001 From: baiqi Date: Wed, 17 Apr 2024 15:33:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(all):=20=E4=BF=AE=E5=A4=8Dbugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/http/checkStatus.ts | 6 +- frontend/src/assets/style/arco-reset.less | 3 + .../business/ms-add-attachment/index.vue | 1 + .../ms-assertion/comp/ResponseBodyTab.vue | 4 +- .../components/business/ms-select/index.tsx | 3 +- .../business/ms-user-group-comp/authTable.vue | 22 +-- .../ms-user-group-comp/msUserGroupLeft.vue | 43 ++++- .../business/ms-user-group-comp/userTable.vue | 2 +- .../components/pure/ms-tags-input/index.vue | 8 +- frontend/src/hooks/useSelect.ts | 2 +- frontend/src/utils/index.ts | 22 ++- .../views/api-test/components/paramTable.vue | 7 +- frontend/src/views/api-test/debug/index.vue | 6 +- .../common/importApiDrawer/index.vue | 18 +- .../scenario/components/scenarioTable.vue | 8 +- .../scenario/components/step/stepTree.vue | 8 +- .../components/fileDetailDrawer.vue | 34 ++-- .../fileManagement/components/popConfirm.vue | 11 +- .../fileManagement/index.vue | 8 +- .../fileManagement/locale/en-US.ts | 1 + .../fileManagement/locale/zh-CN.ts | 1 + .../member/components/memberTable.vue | 171 +++++++++++------- .../projectAndPermission/member/index.vue | 79 +------- .../setting/system/resourcePool/detail.vue | 8 + .../system/resourcePool/locale/en-US.ts | 6 +- .../system/resourcePool/locale/zh-CN.ts | 5 +- .../system/usergroup/systemUserGroup.vue | 4 +- 27 files changed, 289 insertions(+), 202 deletions(-) diff --git a/frontend/src/api/http/checkStatus.ts b/frontend/src/api/http/checkStatus.ts index cf5461ea82..c0b98ff8e3 100644 --- a/frontend/src/api/http/checkStatus.ts +++ b/frontend/src/api/http/checkStatus.ts @@ -2,6 +2,8 @@ import { Message, Modal } from '@arco-design/web-vue'; import { useI18n } from '@/hooks/useI18n'; import useUser from '@/hooks/useUser'; +import router from '@/router'; +import { NO_RESOURCE_ROUTE_NAME } from '@/router/constants'; import type { ErrorMessageMode } from '#/axios'; @@ -22,7 +24,9 @@ export default function checkStatus(status: number, msg: string, errorMessageMod break; } case 403: - errMessage = msg || t('api.errMsg403'); + if (router.currentRoute.value.name !== NO_RESOURCE_ROUTE_NAME) { + router.push({ name: NO_RESOURCE_ROUTE_NAME }); + } break; // 404请求不存在 case 404: diff --git a/frontend/src/assets/style/arco-reset.less b/frontend/src/assets/style/arco-reset.less index 6820d88065..50a3e923ff 100644 --- a/frontend/src/assets/style/arco-reset.less +++ b/frontend/src/assets/style/arco-reset.less @@ -424,6 +424,9 @@ @apply hidden; } } + .arco-icon-hover::before { + @apply hidden; + } } .arco-checkbox-indeterminate .arco-checkbox-icon { border: 1px solid rgba(var(--primary-7)) !important; diff --git a/frontend/src/components/business/ms-add-attachment/index.vue b/frontend/src/components/business/ms-add-attachment/index.vue index 91aef83bb9..0ed00d4ba8 100644 --- a/frontend/src/components/business/ms-add-attachment/index.vue +++ b/frontend/src/components/business/ms-add-attachment/index.vue @@ -76,6 +76,7 @@ :max-tag-count="1" :size="props.inputSize" readonly + no-tooltip >