From bea0dac85e865e3d5dae5b3fd641eb07a4b1b80c Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期五, 21 二月 2025 10:19:06 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev --- rsf-admin/src/App.jsx | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/rsf-admin/src/App.jsx b/rsf-admin/src/App.jsx index f3be5e5..f5034a8 100644 --- a/rsf-admin/src/App.jsx +++ b/rsf-admin/src/App.jsx @@ -21,6 +21,7 @@ import { themes } from './themes/themes'; import { SPA_NAME, SPA_VERSION, DEFAULT_THEME_NAME, DEFAULT_THEME_MODE, DATA_PROVIDER_SPRING } from "./config/setting"; import ResourceContent from "./page/ResourceContent"; +import { getSystemInfo } from '@/api/auth'; const i18nProvider = polyglotI18nProvider( locale => { @@ -50,6 +51,12 @@ const lightTheme = themes.find(theme => theme.name === themeName)?.light; const darkTheme = themes.find(theme => theme.name === themeName)?.dark; + useEffect(() => { + getSystemInfo().then(data => { + localStorage.setItem("system", JSON.stringify(data)); + }) + }, []); + return ( <> <Admin -- Gitblit v1.9.1