From e42e0444c38524f5059db96fff654c48a0751f88 Mon Sep 17 00:00:00 2001 From: zhang zhuo Date: Sun, 25 Jan 2026 09:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/login/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/system/login/index.vue b/src/views/system/login/index.vue index 53dc899..d423ca9 100644 --- a/src/views/system/login/index.vue +++ b/src/views/system/login/index.vue @@ -186,10 +186,10 @@ async function login() { } isLogin.value = true const data = { - username: tools.rsa.encrypt(form.value.username), - password: tools.rsa.encrypt(tools.md5(form.value.password)), + username: tools.rsa.encrypt(form.value.username, sysConfig.RSA_PUBLIC_KEY), + password: tools.rsa.encrypt(tools.md5(form.value.password), sysConfig.RSA_PUBLIC_KEY), 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))