#
luxiaotao1123
2024-09-09 ca180e379562e613fb5655c61832a0dba864f6cd
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':