From 9769996a9aeb219d3a4a4cacd9770ee8a0d562a4 Mon Sep 17 00:00:00 2001 From: wbc <942429426@qq.com> Date: Tue, 3 Jun 2025 15:40:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.ts | 3 +++ src/utils/encryption/crypto.ts | 1 + src/views/auth/login/LoginForm.vue | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 42d68ef..e6c42d4 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -106,6 +106,9 @@ export const useUserStore = defineStore({ ): Promise { try { const { goHome = true, mode, ...loginParams } = params; + console.log(loginParams) + delete loginParams.code + delete loginParams.uuid const data = await loginApi(loginParams, mode); const { access_token } = data; // save token diff --git a/src/utils/encryption/crypto.ts b/src/utils/encryption/crypto.ts index 91ffa60..b55caf3 100644 --- a/src/utils/encryption/crypto.ts +++ b/src/utils/encryption/crypto.ts @@ -48,6 +48,7 @@ export function encryptWithAes(message: string, aesKey: CryptoJS.lib.WordArray) mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7, }); + console.log(message) return encrypted.toString(); } diff --git a/src/views/auth/login/LoginForm.vue b/src/views/auth/login/LoginForm.vue index 25f4260..5345fe4 100644 --- a/src/views/auth/login/LoginForm.vue +++ b/src/views/auth/login/LoginForm.vue @@ -24,7 +24,7 @@ @keypress.enter="handleLogin" /> - +