fix(测试跟踪): 修复创建用例默认没有选择模块问题
This commit is contained in:
parent
c14634548c
commit
d898a951b7
|
@ -420,6 +420,10 @@ export default {
|
|||
this.form.module = this.selectNode.data.id;
|
||||
this.form.nodePath = this.selectNode.data.path;
|
||||
}
|
||||
if((!this.form.module || this.form.module==="default-module" || this.form.module ==="root") && this.treeNodes.length > 0){
|
||||
this.form.module = this.treeNodes[0].id;
|
||||
this.form.nodePath = this.treeNodes[0].path;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
treeNodes() {
|
||||
|
@ -442,6 +446,10 @@ export default {
|
|||
this.form.module = this.currentTestCaseInfo.nodeId;
|
||||
this.form.nodePath = this.currentTestCaseInfo.nodePath;
|
||||
}
|
||||
if((!this.form.module || this.form.module==="default-module" || this.form.module ==="root") && this.treeNodes.length > 0){
|
||||
this.form.module = this.treeNodes[0].id;
|
||||
this.form.nodePath = this.treeNodes[0].path;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
setModule(id,data) {
|
||||
|
|
Loading…
Reference in New Issue