Browse Source

分享返回

yuanyuan 3 năm trước cách đây
mục cha
commit
6e602c498b
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/views/product/Detail.vue

+ 2 - 1
src/views/product/Detail.vue

@@ -1136,7 +1136,8 @@ export default {
             if (!fromRoute || !fromRoute.name) {
                 this.$router.replace('/home');
             } else {
-                this.$router.go(-1);
+                this.$router.replace('/home');
+                // this.$router.go(-1);
             }
         }
     },