From c8fde8647b48e7c7d9b3beb6e8c39459f07c9eb2 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 08 五月 2025 14:55:46 +0800
Subject: [PATCH] Merge branch 'devlop' of http://47.97.1.152:5880/r/wms-master into devlop

---
 rsf-admin/src/App.jsx |   29 +++++++++++++++++++++++------
 1 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/rsf-admin/src/App.jsx b/rsf-admin/src/App.jsx
index 9efadba..86babcc 100644
--- a/rsf-admin/src/App.jsx
+++ b/rsf-admin/src/App.jsx
@@ -30,6 +30,8 @@
 import ResourceContent from "./page/ResourceContent";
 import { getSystemInfo, getSystemDicts, tenants } from "@/api/auth";
 import chineseMessages from 'ra-language-chinese';
+import { createTheme, ThemeProvider } from '@mui/material/styles';
+import { zhCN } from '@mui/material/locale';
 
 const i18nProvider = polyglotI18nProvider(
   (locale) => {
@@ -42,12 +44,27 @@
   [
     { locale: "en", name: "English" },
     { locale: "zh", name: "绠�浣撲腑鏂�" },
+    { locale: "jp", name: "鏃ユ湰瑾�" },
+    { locale: "kr", name: "頃滉淡鞚�" },
+    { locale: "ru", name: "Russian" },
+    { locale: "lk", name: "袪褍褋褋泻懈泄" },
+    { locale: "es", name: "Espa帽ola" },
+    	
   ],
   {
     // msg in console
     allowMissing: true,
   },
 );
+
+
+const theme = createTheme(
+  {
+    palette: { main: '#1976d2' },
+  },
+  zhCN
+)
+
 
 const store = localStorageStore(SPA_VERSION, SPA_NAME);
 
@@ -59,9 +76,6 @@
   useEffect(() => {
     getSystemInfo().then((data) => {
       localStorage.setItem("system", JSON.stringify(data));
-    })
-    getSystemDicts().then(data => {
-      localStorage.setItem('sys_dicts', JSON.stringify(data));
     })
   }, []);
 
@@ -104,9 +118,12 @@
 };
 
 const AppWrapper = () => (
-  <StoreContextProvider value={store}>
-    <App />
-  </StoreContextProvider>
+  <ThemeProvider theme={theme}>
+    <StoreContextProvider value={store}>
+      <App />
+    </StoreContextProvider>
+  </ThemeProvider>
+
 );
 
 export default AppWrapper;
\ No newline at end of file

--
Gitblit v1.9.1