|
|
@ -32,12 +32,15 @@ const Header = (props) => { |
|
|
|
modalRole = headerItems?.filter(v => modal.includes(v.itemKey)) |
|
|
|
if (userRole?.includes('SuperAdmin') || userRole?.includes('admin')) modalRole = headerItems |
|
|
|
} |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
if (JSON.parse(sessionStorage.getItem('pomsUser'))?.token) { |
|
|
|
dispatch(install.getProjectPoms({ global: 1 })).then((res) => { //获取已绑定项目 |
|
|
|
if (res.success) { |
|
|
|
setPomsList(res.payload.data?.rows?.filter(v => v.pepProjectIsDelete == 0)) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
}, []) |
|
|
|
|
|
|
|
useEffect(() => { |
|
|
@ -52,9 +55,6 @@ const Header = (props) => { |
|
|
|
} |
|
|
|
}, [Scrollbar]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
dispatch(pepProject(pepProjectId)) |
|
|
|
console.log(); |
|
|
|