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 >