diff --git a/layouts/module/header/HeaderCart.vue b/layouts/module/header/HeaderCart.vue index f06ea24..710caba 100644 --- a/layouts/module/header/HeaderCart.vue +++ b/layouts/module/header/HeaderCart.vue @@ -10,7 +10,7 @@
购物车 @@ -144,16 +144,13 @@ export default { }, }, methods: { - onJumpCart() { - if (!this.$isLoginValidate()) { - return; - } - this.$router.push("/cart"); - }, onJumpGoodsDetail(id) { this.$router.push(`/goods/detail/${id}`); }, onJumCartPage() { + if (!this.$isLoginValidate()) { + return; + } this.$router.push("/cart"); }, }, diff --git a/layouts/module/header/index.vue b/layouts/module/header/index.vue index faded79..eac91ff 100644 --- a/layouts/module/header/index.vue +++ b/layouts/module/header/index.vue @@ -61,14 +61,13 @@
-
- +
+
+ +