编辑测试修改

This commit is contained in:
Captain.B 2020-02-27 13:42:31 +08:00
parent d4f69fa4ca
commit 9bdf4bcec2
1 changed files with 5 additions and 0 deletions

View File

@ -77,6 +77,11 @@
watch: {
'$route'(to) {
window.console.log(to);
//
if (to.name === 'createTest') {
window.location.reload();
return;
}
let testId = to.path.split('/')[2]; // find testId
this.$get('/testplan/get/' + testId, response => {
this.testPlan = response.data;