Commit bd002a8ecb827e8b2a8d9ae3a0c9c16a0a9906b4
1 parent
d6200736ba
Exists in
master
购物车跳转刷新问题
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
src/pages/cart/cart.vue
... | ... | @@ -158,9 +158,6 @@ export default { |
158 | 158 | }, |
159 | 159 | }, |
160 | 160 | onShow() { |
161 | - this.cartList = this.$store.state.cart.cartList | |
162 | - }, | |
163 | - onLoad: async function() { | |
164 | 161 | await this.$store.dispatch('cart/getCartList', { |
165 | 162 | uid: this.$store.state.user.userInfo.uid, // 用户id |
166 | 163 | }) |
... | ... | @@ -170,6 +167,8 @@ export default { |
170 | 167 | item.isChecked = false |
171 | 168 | }) |
172 | 169 | }, |
170 | + onLoad: async function() { | |
171 | + }, | |
173 | 172 | methods: { |
174 | 173 | // 全选按钮 |
175 | 174 | pClick() { | ... | ... |