mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 适配新业务 接口返回值
This commit is contained in:
		@@ -240,6 +240,7 @@ public class SysUserServiceImpl extends ServicePlusImpl<SysUserMapper, SysUser,
 | 
			
		||||
     * @param user 用户信息
 | 
			
		||||
     * @return 结果
 | 
			
		||||
     */
 | 
			
		||||
	@Override
 | 
			
		||||
    public boolean registerUser(SysUser user) {
 | 
			
		||||
        return baseMapper.insert(user) > 0;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -113,10 +113,10 @@ export default {
 | 
			
		||||
  methods: {
 | 
			
		||||
    getCode() {
 | 
			
		||||
      getCodeImg().then(res => {
 | 
			
		||||
        this.captchaOnOff = res.captchaOnOff === undefined ? true : res.captchaOnOff;
 | 
			
		||||
        this.captchaOnOff = res.data.captchaOnOff === undefined ? true : res.data.captchaOnOff;
 | 
			
		||||
        if (this.captchaOnOff) {
 | 
			
		||||
          this.codeUrl = "data:image/gif;base64," + res.img;
 | 
			
		||||
          this.registerForm.uuid = res.uuid;
 | 
			
		||||
          this.codeUrl = "data:image/gif;base64," + res.data.img;
 | 
			
		||||
          this.registerForm.uuid = res.data.uuid;
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
    },
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user