xuxueyang
2024-07-30 badafedccb814258fa54156b558458fa04191f8d
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
      },
   }
})