修复脚本管理编辑交互,修复ico无法加载

This commit is contained in:
hanhh
2021-08-19 23:46:26 +08:00
parent 76ecfbaaa2
commit 6dbb737d4b
20 changed files with 50 additions and 35 deletions
+7 -1
View File
@@ -14,8 +14,12 @@ import { request } from '@/utils/http';
import './index.less';
import vhCheck from 'vh-check';
import { version, changeLog } from '../version';
import { useCtx, useTheme } from '@/utils/hooks';
export default function (props: any) {
const ctx = useCtx();
const theme = useTheme();
const logout = () => {
request.post(`${config.apiPrefix}logout`).then(() => {
localStorage.removeItem(config.authKey);
@@ -107,7 +111,9 @@ export default function (props: any) {
pageTitleRender={() => '控制面板'}
{...defaultProps}
>
{props.children}
{React.Children.map(props.children, (child) => {
return React.cloneElement(child, { ...ctx, ...theme });
})}
</ProLayout>
);
}