浏览代码

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);
             });
           }
         })