route
This commit is contained in:
parent
ff3ec3ff15
commit
9e26edb62c
|
@ -82,6 +82,10 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (to.name !== 'editPerTest') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let testId = to.path.split('/')[4]; // find testId
|
let testId = to.path.split('/')[4]; // find testId
|
||||||
if (testId) {
|
if (testId) {
|
||||||
this.result = this.$get('/testplan/get/' + testId, response => {
|
this.result = this.$get('/testplan/get/' + testId, response => {
|
||||||
|
|
|
@ -218,8 +218,8 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$route'(to, from) {
|
'$route'(to) {
|
||||||
if (from.name !== 'createPerTest' && from.name !== 'editPerTest') {
|
if (to.name !== 'createPerTest' && to.name !== 'editPerTest') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let testId = to.path.split('/')[4];
|
let testId = to.path.split('/')[4];
|
||||||
|
|
|
@ -131,8 +131,8 @@
|
||||||
this.getResourcePools();
|
this.getResourcePools();
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$route'(to, from) {
|
'$route'(to) {
|
||||||
if (from.name !== 'createPerTest' && from.name !== 'editPerTest') {
|
if (to.name !== 'createPerTest' && to.name !== 'editPerTest') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let testId = to.path.split('/')[4];
|
let testId = to.path.split('/')[4];
|
||||||
|
|
Loading…
Reference in New Issue