From dc6cdf2414ee7c453e1bca47898177f7af079945 Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期一, 29 七月 2024 00:03:59 +0800
Subject: [PATCH] 1

---
 store/index.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/store/index.js b/store/index.js
index 7406b20..b75405f 100644
--- a/store/index.js
+++ b/store/index.js
@@ -220,7 +220,8 @@
                         password: data.password,
                         tel: data.phoneNumber || data.tel,
                         smsCode: data.smsCode || '',
-                        dto: data.dto || undefined
+                        dto: data.dto || undefined,
+                        wxcode: data.wxcode || undefined
                     },
                     params: {
                         clientType: data.clientType || 'app'
@@ -380,7 +381,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 +397,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