Jelajahi Sumber

auto commit

gcz 4 tahun lalu
induk
melakukan
ce8a21280d
1 mengubah file dengan 8 tambahan dan 2 penghapusan
  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);
             });
           }
         })