linwe
2024-08-08 1a5c9d89d7a1347046692ce5086a1391027c8593
src/api/user.js
@@ -8,18 +8,18 @@
    'Tenant-Id': tenantId,
    'Dept-Id': (website.switchMode ? deptId : ''),
    'Role-Id': (website.switchMode ? roleId : ''),
    // 'Captcha-Key': key,
    // 'Captcha-Code': code,
    'Captcha-Key': key,
    'Captcha-Code': code,
  },
  params: {
    tenantId,
    username,
    password,
    grant_type:"password",
    grant_type: "captcha",
    scope: "all",
    type,
    // 查全部-暂定
    loginType:1
    loginType: 1
  }
});
@@ -114,4 +114,4 @@
  url: '/api/blade-auth/oauth/clear-cache',
  method: 'get',
  authorization: false
});
});