Commit 5f905292 by pangchong

fix(mocp登录): 修正登录接口返回数据字段名错误

将res.username改为res.data.username以匹配接口返回数据结构
parent 2eebd1d3
...@@ -138,7 +138,7 @@ const loginAmms = () => { ...@@ -138,7 +138,7 @@ const loginAmms = () => {
} }
}) })
.then(function (res) { .then(function (res) {
if (res.username) { if (res.data.username) {
loginForm.username = res.data.username loginForm.username = res.data.username
loginForm.verifyCode = 'Mocp_DebuG_9527_8341' loginForm.verifyCode = 'Mocp_DebuG_9527_8341'
loginForm.password = 'Ifar2016_0525' loginForm.password = 'Ifar2016_0525'
......
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