Merge branch 'dev-pwd' into dev-codegen-1

This commit is contained in:
cuijiawang
2025-09-30 10:25:08 +08:00

View File

@@ -21,7 +21,7 @@ import { useNav } from "@/layout/hooks/useNav";
import type { FormInstance } from "element-plus";
import { operates, thirdParty } from "./utils/enums";
import { useLayout } from "@/layout/hooks/useLayout";
import { rsaEncrypt } from "@/utils/crypt";
// import { rsaEncrypt } from "@/utils/crypt"; // 已移除RSA加密
import { getTopMenu, initRouter } from "@/router/utils";
import { avatar, bg, illustration } from "./utils/static";
import { useRenderIcon } from "@/components/ReIcon/src/hooks";
@@ -87,7 +87,7 @@ const onLogin = async (formEl: FormInstance | undefined) => {
}
CommonAPI.loginByPassword({
username: ruleForm.username,
password: rsaEncrypt(ruleForm.password),
password: ruleForm.password, // 直接使用明文密码,不再加密
captchaCode: ruleForm.captchaCode,
captchaCodeKey: ruleForm.captchaCodeKey,
grantType: "password",