From d248f83e1a47b2ae25acc46233afbafa353bcfe8 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 16 四月 2025 19:00:16 +0800
Subject: [PATCH] 修复框架Sql过滤问题 修复规则编码添加子列表错误问题
---
rsf-admin/src/page/login/Login.jsx | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/rsf-admin/src/page/login/Login.jsx b/rsf-admin/src/page/login/Login.jsx
index a532631..186f09a 100644
--- a/rsf-admin/src/page/login/Login.jsx
+++ b/rsf-admin/src/page/login/Login.jsx
@@ -14,8 +14,10 @@
import {
useTranslate,
useLogin,
+ localStorageStore,
useNotify,
} from 'react-admin';
+import { getSystemDicts } from "@/api/auth";
import { useForm, Controller, useWatch, FormProvider, useFormContext } from "react-hook-form";
import ProviderChoices from "./ProviderChoices";
import Visibility from '@mui/icons-material/Visibility';
@@ -36,7 +38,7 @@
const username = watch('username');
const password = watch('password');
const tenantId = watch('tenantId');
-
+
useEffect(() => {
if (tenantList.length > 0 && !tenantId) {
const rememberTenantId = localStorage.getItem('remember_tenantId');
@@ -49,6 +51,9 @@
}, [tenantList, setValue]);
const onSubmit = (data) => {
+ getSystemDicts().then(data => {
+ localStorage.setItem('sys_dicts', JSON.stringify(data));
+ })
setLoading(true);
login(
data,
@@ -179,9 +184,9 @@
</Button>
</Stack>
- <Box mt={1} mb={1} sx={{ textAlign: 'center' }}>or</Box>
+ {/* <Box mt={1} mb={1} sx={{ textAlign: 'center' }}>or</Box> */}
- <ProviderChoices type="LOG IN" />
+ {/* <ProviderChoices type="LOG IN" /> */}
</Box >
</>
)
--
Gitblit v1.9.1