fix(测试跟踪): 修复planId可能为空调用后台报错的问题

This commit is contained in:
Captain.B 2021-03-25 14:54:59 +08:00
parent ba17d9f93d
commit 806772a339
3 changed files with 9 additions and 0 deletions

View File

@ -524,6 +524,9 @@ export default {
}); });
}, },
autoCheckStatus() { // autoCheckStatus() { //
if (!this.planId) {
return;
}
this.$post('/test/plan/autoCheck/' + this.planId, (response) => { this.$post('/test/plan/autoCheck/' + this.planId, (response) => {
}); });
}, },

View File

@ -484,6 +484,9 @@ export default {
getLabel(this, TEST_PLAN_FUNCTION_TEST_CASE); getLabel(this, TEST_PLAN_FUNCTION_TEST_CASE);
}, },
autoCheckStatus() { autoCheckStatus() {
if (!this.planId) {
return;
}
this.$post('/test/plan/autoCheck/' + this.planId, (response) => { this.$post('/test/plan/autoCheck/' + this.planId, (response) => {
}); });
}, },

View File

@ -251,6 +251,9 @@ export default {
}, },
autoCheckStatus() { autoCheckStatus() {
if (!this.planId) {
return;
}
this.$post('/test/plan/autoCheck/' + this.planId, (response) => { this.$post('/test/plan/autoCheck/' + this.planId, (response) => {
}); });
}, },