登录修复

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();
}
}
let {module} = params
return http.post("/auth/oauth/token", params, {
let {module, code} = params, action = "/auth/oauth/token"
if (!!code) {
action = "/auth/wechatcp/token"
}
return http.post(action, params, {
withoutToken: true,
module,
params: {