소스 검색

auto commit

gcz 4 년 전
부모
커밋
ce8a21280d
1개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 8 2
      src/views/pms/product/components/ProductDetail.vue

+ 8 - 2
src/views/pms/product/components/ProductDetail.vue

@@ -167,7 +167,10 @@
                 message: '提交成功',
                 duration:1000
               });
-              this.$router.back();
+              // this.$router.back();
+              setTimeout(() =>{
+                this.$router.push({ path:'/pms/product'  })
+              },1000);
             });
           }else{
             createProduct(this.productParam).then(response=>{
@@ -176,7 +179,10 @@
                 message: '提交成功',
                 duration:1000
               });
-              location.reload();
+              // location.reload();
+              setTimeout(() =>{
+                this.$router.push({ path:'/pms/product'  })
+              },1000);
             });
           }
         })