From 8e86034849a51acca148d23a72ae31601164524e Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Thu, 19 Sep 2024 14:20:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E7=BC=BA=E9=99=B7=E5=88=97=E8=A1=A8=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=88=86=E4=BA=AB=E5=90=8E=E9=93=BE=E6=8E=A5=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1046699 --user=宋昌昌 【测试计划】计划详情-缺陷列表点击ID查看缺陷详情-点击分享-同一用户同一浏览器打开分享链接-展示计划详情页且提示无权限 https://www.tapd.cn/55049933/s/1580953 --- .../views/bug-management/components/bug-detail-drawer.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/bug-management/components/bug-detail-drawer.vue b/frontend/src/views/bug-management/components/bug-detail-drawer.vue index 8dbd34265b..c8b45a45e3 100644 --- a/frontend/src/views/bug-management/components/bug-detail-drawer.vue +++ b/frontend/src/views/bug-management/components/bug-detail-drawer.vue @@ -219,7 +219,7 @@ import type { CustomFieldItem } from '@/models/bug-management'; import { BugEditCustomField, BugEditFormObject } from '@/models/bug-management'; - import { RouteEnum } from '@/enums/routeEnum'; + import { BugManagementRouteEnum, RouteEnum } from '@/enums/routeEnum'; const router = useRouter(); const route = useRoute(); @@ -466,8 +466,10 @@ const shareLoading = ref(false); function shareHandler() { - const { origin } = window.location; - const url = `${origin}/#${route.path}?id=${detailInfo.value.id}&pId=${appStore.currentProjectId}&orgId=${appStore.currentOrgId}`; + const url = `${window.location.origin}#${ + router.resolve({ name: BugManagementRouteEnum.BUG_MANAGEMENT_INDEX }).fullPath + }? + id=${detailInfo.value.id}&orgId=${appStore.currentOrgId}&pId=${appStore.currentProjectId}`; if (isSupported) { copy(url); Message.info(t('bugManagement.detail.shareTip'));