|
@@ -460,13 +460,16 @@ const Main = () => {
|
|
|
<Input
|
|
|
style={{ width: '350px' }}
|
|
|
value={currentProjectName}
|
|
|
+ disabled={sessionStorage.getItem('role') !== '1'}
|
|
|
onChange={e => {
|
|
|
setCurrentProjectName(e.target.value)
|
|
|
}}
|
|
|
/>
|
|
|
- <Button type="primary" onClick={editProjectName}>
|
|
|
- 确认
|
|
|
- </Button>
|
|
|
+ {sessionStorage.getItem('role') === '1' && (
|
|
|
+ <Button type="primary" onClick={editProjectName}>
|
|
|
+ 确认
|
|
|
+ </Button>
|
|
|
+ )}
|
|
|
</Space>
|
|
|
<Space style={{ padding: '10px 20px 30px', display: 'flex' }}>
|
|
|
<span>项目成员管理:</span>
|