refactor: 保存接口测试不跳转到列表页面

This commit is contained in:
chenjianxing 2020-08-05 17:22:01 +08:00
parent 3a8dc9ee04
commit f10c233858
1 changed files with 3 additions and 8 deletions

View File

@ -157,13 +157,9 @@
saveTest() {
this.save(() => {
this.$success(this.$t('commons.save_success'));
if (this.create) {
this.$router.push({
path: '/api/test/edit?id=' + this.test.id
})
} else {
this.$router.push({path: '/api/test/list/all'})
}
this.$router.push({
path: '/api/test/edit?id=' + this.test.id;
})
})
},
runTest() {
@ -183,7 +179,6 @@
})
},
cancel() {
// console.log(this.test.toJMX().xml)
this.$router.push('/api/test/list/all');
},
getOptions(url) {