fix(测试计划): 测试计划详情-用例详情-修复左侧列表参数有问题的缺陷

--bug=1044144 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044144
This commit is contained in:
teukkk 2024-07-17 18:01:07 +08:00 committed by Craftsman
parent 5e2ef1d10a
commit 8fd06968bb
1 changed files with 14 additions and 2 deletions

View File

@ -313,7 +313,6 @@
try {
caseListLoading.value = true;
const res = await getPlanDetailFeatureCaseList({
projectId: appStore.currentProjectId,
testPlanId: route.query.id as string,
keyword: keyword.value,
current: pageNation.value.current || 1,
@ -557,7 +556,17 @@
onBeforeMount(async () => {
const lastPageParams = window.history.state.params ? JSON.parse(window.history.state.params) : null; //
if (lastPageParams) {
const { total, pageSize, current, keyword: _keyword, sort, moduleIds } = lastPageParams;
const {
total,
pageSize,
current,
keyword: _keyword,
sort,
moduleIds,
collectionId,
treeType,
projectId,
} = lastPageParams;
pageNation.value = {
total: total || 0,
pageSize,
@ -567,6 +576,9 @@
otherListQueryParams.value = {
sort,
moduleIds,
collectionId,
treeType,
projectId,
};
}
getPlanDetail();