From 67001cbd71a2f6cde26937a73db5af34db442a64 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 09 九月 2024 11:40:52 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/layout/Logo.jsx | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/zy-acs-flow/src/layout/Logo.jsx b/zy-acs-flow/src/layout/Logo.jsx
index 1262208..ac8a41f 100644
--- a/zy-acs-flow/src/layout/Logo.jsx
+++ b/zy-acs-flow/src/layout/Logo.jsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { useStore } from 'react-admin'
import { useTheme } from '@mui/material/styles';
+import { DEFAULT_THEME_NAME } from '@/config/setting';
const Logo = (props) => {
const theme = useTheme();
- const [themeName] = useStore('themeName', 'soft');
+ const [themeName] = useStore('themeName', DEFAULT_THEME_NAME);
const lightLogo = (param) => {
return (
@@ -44,8 +45,10 @@
const getLogo = (themeName, mode) => {
switch (themeName) {
+ case DEFAULT_THEME_NAME:
+ return darkLogo();
case 'soft':
- return theme.palette.mode === 'dark' ? darkLogo() : lightLogo({opacity: .7});
+ return theme.palette.mode === 'dark' ? darkLogo() : lightLogo({ opacity: .7 });
case 'default':
return theme.palette.mode === 'dark' ? darkLogo() : darkLogo();
case 'nano':
--
Gitblit v1.9.1