fix(测试计划): 计划缺陷列表详情分享后链接错误
--bug=1046699 --user=宋昌昌 【测试计划】计划详情-缺陷列表点击ID查看缺陷详情-点击分享-同一用户同一浏览器打开分享链接-展示计划详情页且提示无权限 https://www.tapd.cn/55049933/s/1580953
This commit is contained in:
parent
d69715d8ba
commit
8e86034849
|
@ -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<boolean>(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'));
|
||||
|
|
Loading…
Reference in New Issue