Commit 4b5ff119 by 姜雷

修改参数名

parent 8d7ba468
......@@ -111,11 +111,18 @@ Page({
.then((res: wx.RequestSuccessCallbackResult) => {
console.log(res);
return {
code: res.data.verifyCode,
verifyCode: res.data.verifyCode,
cookie: res.header['Set-Cookie'],
};
})
.then(({ vCode, cookie }: { vCode: string; cookie: string }) => {
.then(
({
verifyCode,
cookie,
}: {
verifyCode: string;
cookie: string;
}) => {
let mixpwd = md5(pwd);
return systemFetch({
url: '/boss/login',
......@@ -127,10 +134,11 @@ Page({
code,
account,
pwd: mixpwd,
varifyCode: vCode,
varifyCode: verifyCode,
},
});
})
},
)
.then(res => {
console.log(res);
const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment