refactor: 保存接口测试不跳转到列表页面
This commit is contained in:
parent
3a8dc9ee04
commit
f10c233858
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue