mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 09:34:31 +08:00
修复脚本管理编辑交互,修复ico无法加载
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user