fix(测试跟踪): 用例导入模块名前后有空格导入失败
--bug=1018892 --user=陈建星 【测试跟踪】github #18910,用例导入,按用例模板将必填字段填写完成,上传表格用例到ms报错 https://www.tapd.cn/55049933/s/1277563
This commit is contained in:
parent
d5bc1d4538
commit
f2263fc016
|
@ -295,7 +295,7 @@ public class NodeTreeService<T extends TreeNodeDTO> {
|
|||
|
||||
StringBuilder path = new StringBuilder(rootPath);
|
||||
|
||||
path.append("/" + nodeName);
|
||||
path.append("/" + nodeName.trim());
|
||||
|
||||
String pid;
|
||||
//创建过不创建
|
||||
|
@ -309,7 +309,7 @@ public class NodeTreeService<T extends TreeNodeDTO> {
|
|||
}
|
||||
|
||||
while (pathIterator.hasNext()) {
|
||||
String nextNodeName = pathIterator.next();
|
||||
String nextNodeName = pathIterator.next().trim();
|
||||
path.append("/" + nextNodeName);
|
||||
if (pathMap.get(path.toString()) != null) {
|
||||
pid = pathMap.get(path.toString());
|
||||
|
|
Loading…
Reference in New Issue