|
|
@@ -244,7 +244,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
- if (to.path === '/productDetail') {
|
|
|
+ if (to.name === 'productDetail') {
|
|
|
this.beforeSort = this.sort;
|
|
|
this.scrollTop = this.scrollWrapper.value.scrollTop;
|
|
|
this.setKeeps(['productSearch']);
|