fix(测试跟踪): 用例列表点击模块,url没有加上模块ID
This commit is contained in:
parent
1f7b1344c0
commit
2682a35e4c
|
@ -549,6 +549,10 @@ export default {
|
|||
watch: {
|
||||
'$route'(to) {
|
||||
if (to.path.indexOf("/track/case/all") >= 0) {
|
||||
if (to.query.moduleId) {
|
||||
// 点击模块导致路由变更不刷新,避免刷新两次
|
||||
return;
|
||||
}
|
||||
this.getTemplateField();
|
||||
let ids = this.$route.params.ids;
|
||||
if (ids) {
|
||||
|
|
|
@ -323,6 +323,8 @@ export default {
|
|||
this.currentModule = node.data;
|
||||
this.currentNode = node;
|
||||
|
||||
this.$emit("nodeSelectEvent", node, node.data.id === 'root' ? [] : nodeIds, pNodes);
|
||||
|
||||
// 刷新模块树
|
||||
this.nohupReloadTree(node.data.id);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue