From 96aeb2a232d85306ced2061f024a2ff491a92ff7 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期四, 25 七月 2024 17:47:12 +0800 Subject: [PATCH] fix bug --- store/index.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/store/index.js b/store/index.js index 7406b20..8a6aef8 100644 --- a/store/index.js +++ b/store/index.js @@ -380,7 +380,7 @@ } }) console.log('resp', resp) - if (resp && resp.code == 0) { + if (resp && resp.code === 0) { storage.setItem('token', resp.data.access_token) commit("updateLogin", true) await dispatch('getCurrentInfo') @@ -396,7 +396,7 @@ }, submitShopping: async function ({commit, dispatch}, data) { - const resp = await http.request('post', '/api/api/customer/flower/cart/change-num', { + const resp = await http.request('post', '/api/customer/flower/cart/change-num', { data: { id: data.id, num: 1 -- Gitblit v1.9.3