This commit is contained in:
parent
081500f37c
commit
e42e0444c3
|
|
@ -186,10 +186,10 @@ async function login() {
|
||||||
}
|
}
|
||||||
isLogin.value = true
|
isLogin.value = true
|
||||||
const data = {
|
const data = {
|
||||||
username: tools.rsa.encrypt(form.value.username),
|
username: tools.rsa.encrypt(form.value.username, sysConfig.RSA_PUBLIC_KEY),
|
||||||
password: tools.rsa.encrypt(tools.md5(form.value.password)),
|
password: tools.rsa.encrypt(tools.md5(form.value.password), sysConfig.RSA_PUBLIC_KEY),
|
||||||
uuid: form.value.uuid,
|
uuid: form.value.uuid,
|
||||||
code: tools.rsa.encrypt(form.value.code)
|
code: tools.rsa.encrypt(form.value.code, sysConfig.RSA_PUBLIC_KEY)
|
||||||
}
|
}
|
||||||
// 登录接口
|
// 登录接口
|
||||||
const [res, err] = await tools.go(api.auth.login(data))
|
const [res, err] = await tools.go(api.auth.login(data))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue