修改任务编辑优化bug

pull/123/head
刘兵兵 2018-11-29 11:59:19 +08:00
parent d594e88870
commit dc23f762cc
1 changed files with 2 additions and 1 deletions

View File

@ -173,8 +173,9 @@ export default {
var exceptCode = this.action == 'CREATE' ? 201 : 200;
this.loading = true;
var vm = this;
console.log(vm.$route.query);
this.$rest.PUT('job', this.job)
.onsucceed(exceptCode, ()=>{vm.$router.push('/job',{query:vm.$route.query})})
.onsucceed(exceptCode, ()=>{vm.$router.push({path:'/job',query:vm.$route.query})})
.onfailed((resp)=>{vm.$bus.$emit('error', resp)})
.onend(()=>{vm.loading=false})
.do();