diff --git a/src/pages/cart/cart.vue b/src/pages/cart/cart.vue index 4612a9d..3316917 100644 --- a/src/pages/cart/cart.vue +++ b/src/pages/cart/cart.vue @@ -158,9 +158,6 @@ export default { }, }, onShow() { - this.cartList = this.$store.state.cart.cartList - }, - onLoad: async function() { await this.$store.dispatch('cart/getCartList', { uid: this.$store.state.user.userInfo.uid, // 用户id }) @@ -170,6 +167,8 @@ export default { item.isChecked = false }) }, + onLoad: async function() { + }, methods: { // 全选按钮 pClick() {