Explorar o código

Merge branch 'develop' of http://120.55.44.4:10080/xujunjie/gt_client_pad into develop

Renxy hai 1 ano
pai
achega
4bd6c1642a
Modificáronse 2 ficheiros con 7 adicións e 2 borrados
  1. 6 1
      src/components/PageContent/index.js
  2. 1 1
      src/pages/Menu/index.js

+ 6 - 1
src/components/PageContent/index.js

@@ -1,13 +1,18 @@
+import { UnityAction } from '@/utils/utils';
 import { CloseOutlined } from '@ant-design/icons';
 import { CloseOutlined } from '@ant-design/icons';
 import styles from './index.less';
 import styles from './index.less';
 
 
 export default (props) => {
 export default (props) => {
   const { children, style, closeable = true } = props;
   const { children, style, closeable = true } = props;
 
 
+  const handleClose = () => {
+    UnityAction.sendMsg('closePage');
+  };
+
   return (
   return (
     <div className={styles.page} style={style}>
     <div className={styles.page} style={style}>
       {closeable && (
       {closeable && (
-          <CloseOutlined className={styles.close} />
+        <CloseOutlined onClick={handleClose} className={styles.close} />
       )}
       )}
 
 
       {children}
       {children}

+ 1 - 1
src/pages/Menu/index.js

@@ -29,7 +29,7 @@ const menuList = [
     path: (projectId) => `/task-manage/${projectId}`,
     path: (projectId) => `/task-manage/${projectId}`,
   },
   },
   {
   {
-    name: '智能控',
+    name: '智能控',
     path: (projectId) => `/hardware-controller/${projectId}`,
     path: (projectId) => `/hardware-controller/${projectId}`,
   },
   },
   {
   {