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

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

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",