fix: 144986 wiki的"使用此版本“按钮权限控制

fix: 144986 wiki的"使用此版本“按钮权限控制
This commit is contained in:
amypeng 2026-07-09 14:59:40 +08:00
parent 371d93be23
commit 27e5336c3b
1 changed files with 3 additions and 3 deletions

View File

@ -83,11 +83,11 @@ export default (props) => {
}
>预览</Button>
<div className="divider"></div>
<Button type='link' onClick={()=>{
{permission && <Button type='link' onClick={()=>{
const currentSearchParams = new URLSearchParams(search)
currentSearchParams.set('sha', text)
history.push(`/${owner}/${repoIdentifier}/wiki/edit?${currentSearchParams.toString()}`)
}}>使用此版本</Button>
history.push(`/${owner}/${repoIdentifier}/wiki/edit?${currentSearchParams.toString()}`)
}}>使用此版本</Button>}
</div>
}
}