登录修复

This commit is contained in:
aixianling
2022-06-13 20:54:05 +08:00
parent b29bf75ce6
commit ea56f95246

View File

@@ -85,8 +85,11 @@ export const config = {
return encrypted.toString(); return encrypted.toString();
} }
} }
let {module} = params let {module, code} = params, action = "/auth/oauth/token"
return http.post("/auth/oauth/token", params, { if (!!code) {
action = "/auth/wechatcp/token"
}
return http.post(action, params, {
withoutToken: true, withoutToken: true,
module, module,
params: { params: {