fix 修复 用户注册缺失 clientid 问题

This commit is contained in:
疯狂的狮子Li 2023-11-01 10:46:42 +08:00
parent 6ad0ed5316
commit 631f338be2

View File

@ -29,6 +29,11 @@ export function login(data: LoginData): AxiosPromise<LoginResult> {
// 注册方法
export function register(data: any) {
const params = {
...data,
clientId: clientId,
grantType: 'password'
};
return request({
url: '/auth/register',
headers: {
@ -36,7 +41,7 @@ export function register(data: any) {
isEncrypt: true
},
method: 'post',
data: data
data: params
});
}