|
|
|
@@ -4,6 +4,7 @@ import { type GlobalInitialState } from '@/types'; |
|
|
|
import { menuItemRender } from '@/utils/menuRender'; |
|
|
|
import type { Settings as LayoutSettings } from '@ant-design/pro-components'; |
|
|
|
import { RuntimeConfig, history } from '@umijs/max'; |
|
|
|
import { useState } from 'react'; |
|
|
|
import { RuntimeAntdConfig } from 'umi'; |
|
|
|
import defaultSettings from '../config/defaultSettings'; |
|
|
|
import '../public/fonts/font.css'; |
|
|
|
@@ -172,6 +173,17 @@ export function render(oldRender: () => void) { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
export const useQiankunStateForSlave = () => { |
|
|
|
const [globalState, setGlobalState] = useState<any>({ |
|
|
|
slogan: 'Hello MicroFrontend', |
|
|
|
}); |
|
|
|
|
|
|
|
return { |
|
|
|
globalState, |
|
|
|
setGlobalState, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
// 主题修改 |
|
|
|
export const antd: RuntimeAntdConfig = (memo) => { |
|
|
|
memo.theme ??= {}; |
|
|
|
|