fix(接口测试): 解决接口移动时不更新相关模块路径问题
--user=郭雨琦 --bug=1014713 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001014713
This commit is contained in:
parent
ce49e7964f
commit
0dd91944aa
|
@ -1572,11 +1572,6 @@ public class ApiDefinitionService {
|
||||||
}
|
}
|
||||||
//name在这里只是查询参数
|
//name在这里只是查询参数
|
||||||
request.setName(null);
|
request.setName(null);
|
||||||
//如果移动模块,需要重新设置模块路径
|
|
||||||
if (request.getModuleId() != null) {
|
|
||||||
ApiModule apiModule = apiModuleMapper.selectByPrimaryKey(request.getModuleId());
|
|
||||||
request.setModulePath("/" + apiModule.getName());
|
|
||||||
}
|
|
||||||
ApiDefinitionWithBLOBs definitionWithBLOBs = new ApiDefinitionWithBLOBs();
|
ApiDefinitionWithBLOBs definitionWithBLOBs = new ApiDefinitionWithBLOBs();
|
||||||
BeanUtils.copyBean(definitionWithBLOBs, request);
|
BeanUtils.copyBean(definitionWithBLOBs, request);
|
||||||
definitionWithBLOBs.setUpdateTime(System.currentTimeMillis());
|
definitionWithBLOBs.setUpdateTime(System.currentTimeMillis());
|
||||||
|
|
|
@ -243,7 +243,8 @@ import {API_DEFINITION_CONFIGS} from "@/business/components/common/components/se
|
||||||
import MsTipButton from "@/business/components/common/components/MsTipButton";
|
import MsTipButton from "@/business/components/common/components/MsTipButton";
|
||||||
import CaseBatchMove from "@/business/components/api/definition/components/basis/BatchMove";
|
import CaseBatchMove from "@/business/components/api/definition/components/basis/BatchMove";
|
||||||
import {
|
import {
|
||||||
buildBatchParam, deepClone,
|
buildBatchParam,
|
||||||
|
deepClone,
|
||||||
getCustomTableHeader,
|
getCustomTableHeader,
|
||||||
getCustomTableWidth,
|
getCustomTableWidth,
|
||||||
getLastTableSortField,
|
getLastTableSortField,
|
||||||
|
@ -970,7 +971,7 @@ export default {
|
||||||
exportTree.splice(i, 1);
|
exportTree.splice(i, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return exportTree;
|
return exportTree;
|
||||||
},
|
},
|
||||||
// 去掉没有数据的模块再导出
|
// 去掉没有数据的模块再导出
|
||||||
cutDownTree(nodeTree, nodeIdSet) {
|
cutDownTree(nodeTree, nodeIdSet) {
|
||||||
|
|
Loading…
Reference in New Issue