|
@@ -1,6 +1,7 @@
|
|
import { useParams } from '@umijs/max';
|
|
import { useParams } from '@umijs/max';
|
|
import { useState } from 'react';
|
|
import { useState } from 'react';
|
|
import styles from './index.less';
|
|
import styles from './index.less';
|
|
|
|
+import { UnityAction } from '@/utils/utils';
|
|
|
|
|
|
const menuList = [
|
|
const menuList = [
|
|
{
|
|
{
|
|
@@ -21,7 +22,7 @@ const menuList = [
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '安全管理',
|
|
name: '安全管理',
|
|
- path: (projectId) => ``,
|
|
|
|
|
|
+ path: (projectId) => `/safety/${projectId}`,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '任务管理',
|
|
name: '任务管理',
|
|
@@ -44,6 +45,7 @@ function Menu() {
|
|
const path = item?.path(projectId);
|
|
const path = item?.path(projectId);
|
|
// history.push(path);
|
|
// history.push(path);
|
|
console.log(path);
|
|
console.log(path);
|
|
|
|
+ UnityAction.sendMsg("menuItem", item.name)
|
|
};
|
|
};
|
|
|
|
|
|
return (
|
|
return (
|