diff --git a/buyer/src/components/drawer/Main.vue b/buyer/src/components/drawer/Main.vue index 352e169c1..0e0ec5f0c 100644 --- a/buyer/src/components/drawer/Main.vue +++ b/buyer/src/components/drawer/Main.vue @@ -65,9 +65,9 @@ export default { this.$router.push({ path: '/login', query: { - rePath: this.$router.history.current.path, - query: JSON.stringify(this.$router.history.current.query) - } + rePath: this.$route.path, + query: JSON.stringify(this.$route.query || {}), + }, }); } }); diff --git a/buyer/src/components/header/Header.vue b/buyer/src/components/header/Header.vue index 31662b75d..2fc341d40 100644 --- a/buyer/src/components/header/Header.vue +++ b/buyer/src/components/header/Header.vue @@ -52,7 +52,7 @@ 购物车({{ cartNum < 100 ? cartNum : '99' }})