修改dockerfile和默认跳转路径

This commit is contained in:
whyour
2021-03-18 11:31:49 +08:00
parent 4555a24434
commit c0bb6cddf4
3 changed files with 14 additions and 11 deletions
+7 -7
View File
@@ -9,7 +9,7 @@ import ProLayout, {
import defaultProps from './defaultProps';
import { Link, history } from 'umi';
import config from '@/utils/config';
import 'codemirror/mode/shell/shell.js'
import 'codemirror/mode/shell/shell.js';
import './index.less';
export default function (props: any) {
@@ -21,7 +21,7 @@ export default function (props: any) {
}, []);
useEffect(() => {
if (props.location.pathname === '/') {
history.push('/config');
history.push('/cookie');
}
}, [props.location.pathname]);
if (props.location.pathname === '/login') {
@@ -41,11 +41,11 @@ export default function (props: any) {
}
return <Link to={menuItemProps.path}>{defaultDom}</Link>;
}}
// rightContentRender={() => (
// <div>
// <Avatar shape="square" size="small" icon={<UserOutlined />} />
// </div>
// )}
// rightContentRender={() => (
// <div>
// <Avatar shape="square" size="small" icon={<UserOutlined />} />
// </div>
// )}
{...defaultProps}
>
{props.children}