From c1f6996b25ddec9f576d380471b842b44a7f1545 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期五, 02 八月 2024 11:55:22 +0800 Subject: [PATCH] 1 --- store/index.js | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/store/index.js b/store/index.js index 6146367..528e0f9 100644 --- a/store/index.js +++ b/store/index.js @@ -108,6 +108,16 @@ console.log('sign_add', key) state.sign[key] = 1 }, + // sign_add_value: async function({ + // commit, + // state + // }, { + // key, + // value + // }) { + // console.log('sign_add', key) + // state.sign[key] = value || 0 + // }, sign_clear: async function({ commit, state @@ -506,7 +516,11 @@ state }, data) { if (state.currentInfo.id) { - const resp = await http.request('get', '/api/customer/flower/cart/flower/count', {}) + const resp = await http.request('get', '/api/customer/flower/cart/flower/count', { + params: { + // flowerId: data || null + } + }) if (resp && resp.code === 0) { return resp.data || 0 } else { -- Gitblit v1.9.3