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

This commit is contained in:
hanhh
2021-08-19 23:46:26 +08:00
parent f86892cef0
commit d9a9d2ee4f
20 changed files with 50 additions and 35 deletions
+1 -1
View File
@@ -69,5 +69,5 @@ export default {
fixSiderbar: true,
contentWidth: 'Fixed',
splitMenus: false,
logo: 'https://qinglong.whyour.cn/qinglong.png',
logo: '/images/qinglong.png',
} as any;
+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>
);
}