store/index.js
@@ -415,6 +415,22 @@ } return resp }, countShopping: async function({ commit, dispatch, state }, data) { if(state.currentInfo.id){ const resp = await http.request('get', '/api/customer/flower/cart/flower/count', {}) if (resp && resp.code === 0) { return resp.data || 0 } else { return 0 } } return 0 }, } })