update 适配新业务 接口返回值

This commit is contained in:
疯狂的狮子li 2021-08-02 13:08:36 +08:00
parent c958217d19
commit 28073ef2fe
2 changed files with 209 additions and 208 deletions

View File

@ -240,6 +240,7 @@ public class SysUserServiceImpl extends ServicePlusImpl<SysUserMapper, SysUser,
* @param user 用户信息 * @param user 用户信息
* @return 结果 * @return 结果
*/ */
@Override
public boolean registerUser(SysUser user) { public boolean registerUser(SysUser user) {
return baseMapper.insert(user) > 0; return baseMapper.insert(user) > 0;
} }

View File

@ -113,10 +113,10 @@ export default {
methods: { methods: {
getCode() { getCode() {
getCodeImg().then(res => { getCodeImg().then(res => {
this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff; this.captchaOnOff = res.data.captchaOnOff === undefined ? true : res.data.captchaOnOff;
if (this.captchaOnOff) { if (this.captchaOnOff) {
this.codeUrl = "data:image/gif;base64," + res.img; this.codeUrl = "data:image/gif;base64," + res.data.img;
this.registerForm.uuid = res.uuid; this.registerForm.uuid = res.data.uuid;
} }
}); });
}, },