From 8af3db52a632968206ca2bc7f9bd6b4662350232 Mon Sep 17 00:00:00 2001 From: xuxy <1059738716@qq.com> Date: 星期二, 25 六月 2024 11:50:18 +0800 Subject: [PATCH] 商品管理 --- store/index.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/store/index.js b/store/index.js index ba31727..fd022d1 100644 --- a/store/index.js +++ b/store/index.js @@ -245,16 +245,18 @@ } return resp }, - loginShop: async function({ + loginSupplier: async function({ commit, dispatch, state }, data) { { - const resp = await http.request('post', '/api/login/employee', { + const resp = await http.request('post', '/api/login/supplier'+(data.phoneNumber?'/phone':''), { data: { username: data.username, - password: data.password + password: data.password, + tel:data.phoneNumber, + smsCode:data.smsCode || '' }, params: { clientType: data.clientType || 'app' -- Gitblit v1.9.3