fix(功能用例): 修改首次上来关联场景用例参数报错问题
This commit is contained in:
parent
d127d6cd95
commit
9baaf0619a
|
@ -308,8 +308,6 @@
|
|||
* @param isSetDefaultKey 是否设置第一个节点为选中节点
|
||||
*/
|
||||
async function initModules(isSetDefaultKey = false) {
|
||||
console.log(111);
|
||||
|
||||
try {
|
||||
moduleLoading.value = true;
|
||||
let params = {
|
||||
|
@ -760,8 +758,12 @@
|
|||
value: string | number | boolean | Record<string, any> | (string | number | boolean | Record<string, any>)[]
|
||||
) {
|
||||
caseType.value = value as keyof typeof CaseLinkEnum;
|
||||
if (!props.hideProjectSelect) {
|
||||
initProjectList(true);
|
||||
}
|
||||
initModules(true);
|
||||
searchCase();
|
||||
initFilter();
|
||||
}
|
||||
|
||||
watch(
|
||||
|
@ -798,18 +800,6 @@
|
|||
}
|
||||
);
|
||||
|
||||
watch(
|
||||
() => props.currentSelectCase,
|
||||
() => {
|
||||
if (!props.hideProjectSelect) {
|
||||
initProjectList(true);
|
||||
}
|
||||
initModules(true);
|
||||
searchCase();
|
||||
initFilter();
|
||||
}
|
||||
);
|
||||
|
||||
defineExpose({
|
||||
initModules,
|
||||
});
|
||||
|
|
|
@ -965,20 +965,6 @@ export const pathMap: PathMapItem[] = [
|
|||
permission: [],
|
||||
level: MENU_LEVEL[2],
|
||||
},
|
||||
{
|
||||
key: 'TEST_PLAN_INDEX_DETAIL', // 测试计划-测试计划-测试计划详情
|
||||
locale: 'menu.testPlan.testPlanDetail',
|
||||
route: RouteEnum.TEST_PLAN_INDEX_DETAIL,
|
||||
permission: [],
|
||||
level: MENU_LEVEL[2],
|
||||
},
|
||||
{
|
||||
key: 'TEST_PLAN_INDEX_DETAIL_FEATURE_CASE_DETAIL', // 测试计划-测试计划-测试计划详情-功能用例详情
|
||||
locale: 'menu.caseManagement.caseManagementCaseDetail',
|
||||
route: RouteEnum.TEST_PLAN_INDEX_DETAIL_FEATURE_CASE_DETAIL,
|
||||
permission: [],
|
||||
level: MENU_LEVEL[2],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue