diff --git a/api/user.js b/api/user.js index 1d9807b..0af8204 100644 --- a/api/user.js +++ b/api/user.js @@ -23,11 +23,9 @@ export const loginByUsername = (tenantId, username, password, type, key, code, t password, grant_type: (website.captchaMode ? "captcha" : "password"), scope: "all", - type - }, - data: { + type, token - } + }, }); export const refreshToken = (refresh_token, tenantId) => request({