From dc23f762cc6ce9269b8a11513288d8c21481691b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=85=B5=E5=85=B5?= Date: Thu, 29 Nov 2018 11:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E4=BC=98=E5=8C=96bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/ui/src/components/JobEditForm.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/ui/src/components/JobEditForm.vue b/web/ui/src/components/JobEditForm.vue index 62d0c07..e3cc14a 100644 --- a/web/ui/src/components/JobEditForm.vue +++ b/web/ui/src/components/JobEditForm.vue @@ -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();