提交 f10c2338 编写于 作者: C chenjianxing

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

上级 3a8dc9ee
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册