|  | @@ -1,19 +1,36 @@
 | 
											
												
													
														|  |  import { UnityAction } from '@/utils/utils';
 |  |  import { UnityAction } from '@/utils/utils';
 | 
											
												
													
														|  | -import { CloseOutlined } from '@ant-design/icons';
 |  | 
 | 
											
												
													
														|  | 
 |  | +import { CloseOutlined, LeftOutlined } from '@ant-design/icons';
 | 
											
												
													
														|  | 
 |  | +import { history } from '@umijs/max';
 | 
											
												
													
														|  |  import { ConfigProvider } from 'antd';
 |  |  import { ConfigProvider } from 'antd';
 | 
											
												
													
														|  |  import locale from 'antd/es/locale/zh_CN';
 |  |  import locale from 'antd/es/locale/zh_CN';
 | 
											
												
													
														|  |  import styles from './index.less';
 |  |  import styles from './index.less';
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  export default (props) => {
 |  |  export default (props) => {
 | 
											
												
													
														|  | -  const { children, style, closeable = true, tabs = false } = props;
 |  | 
 | 
											
												
													
														|  | 
 |  | +  const {
 | 
											
												
													
														|  | 
 |  | +    children,
 | 
											
												
													
														|  | 
 |  | +    style,
 | 
											
												
													
														|  | 
 |  | +    closeable = true,
 | 
											
												
													
														|  | 
 |  | +    returnable = false,
 | 
											
												
													
														|  | 
 |  | +    tabs = false,
 | 
											
												
													
														|  | 
 |  | +  } = props;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    const handleClose = () => {
 |  |    const handleClose = () => {
 | 
											
												
													
														|  |      UnityAction.sendMsg('closePage');
 |  |      UnityAction.sendMsg('closePage');
 | 
											
												
													
														|  |    };
 |  |    };
 | 
											
												
													
														|  | 
 |  | +  const handleReturn = () => {
 | 
											
												
													
														|  | 
 |  | +    history.back();
 | 
											
												
													
														|  | 
 |  | +  };
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    return (
 |  |    return (
 | 
											
												
													
														|  |      <ConfigProvider locale={locale}>
 |  |      <ConfigProvider locale={locale}>
 | 
											
												
													
														|  |        <div className={styles.page} style={style}>
 |  |        <div className={styles.page} style={style}>
 | 
											
												
													
														|  | 
 |  | +        {returnable && (
 | 
											
												
													
														|  | 
 |  | +          <LeftOutlined
 | 
											
												
													
														|  | 
 |  | +            onClick={handleReturn}
 | 
											
												
													
														|  | 
 |  | +            className={styles.return}
 | 
											
												
													
														|  | 
 |  | +            style={{ top: tabs ? 42.5 : '' }}
 | 
											
												
													
														|  | 
 |  | +          />
 | 
											
												
													
														|  | 
 |  | +        )}
 | 
											
												
													
														|  |          {closeable && (
 |  |          {closeable && (
 | 
											
												
													
														|  |            <CloseOutlined
 |  |            <CloseOutlined
 | 
											
												
													
														|  |              onClick={handleClose}
 |  |              onClick={handleClose}
 |