Commit e7e23838 by zhaochengxiang

bug fix

parent 38baf97a
...@@ -782,8 +782,8 @@ const ModelTable = (props) => { ...@@ -782,8 +782,8 @@ const ModelTable = (props) => {
{ {
view !== 'branch' && <PermissionRcItem view !== 'branch' && <PermissionRcItem
id='auth-transfer' id='auth-transfer'
disabled={currentItem?.supportChangeOwner?false:true}
onClick={handleItemClick} onClick={handleItemClick}
defaultPermission={currentItem?.supportChangeOwner?true:false}
> >
权限转移 权限转移
</PermissionRcItem> </PermissionRcItem>
...@@ -791,8 +791,8 @@ const ModelTable = (props) => { ...@@ -791,8 +791,8 @@ const ModelTable = (props) => {
{ {
view !== 'branch' && <PermissionRcItem view !== 'branch' && <PermissionRcItem
id='auth-share' id='auth-share'
disabled={currentItem?.supportCoediting?false:true}
onClick={handleItemClick} onClick={handleItemClick}
defaultPermission={currentItem?.supportCoediting?true:false}
> >
权限共享 权限共享
</PermissionRcItem> </PermissionRcItem>
......
...@@ -225,10 +225,6 @@ const RuleReviewItem = ({ value = {}, onChange }) => { ...@@ -225,10 +225,6 @@ const RuleReviewItem = ({ value = {}, onChange }) => {
} }
}, [searchValue], { wait: 300 }) }, [searchValue], { wait: 300 })
React.useEffect(() => {
getUsers()
}, [])
const getUsers = () => { const getUsers = () => {
setLoading(true) setLoading(true)
dispatch({ dispatch({
...@@ -414,10 +410,6 @@ const DesignUsersItem = ({ value, onChange }) => { ...@@ -414,10 +410,6 @@ const DesignUsersItem = ({ value, onChange }) => {
} }
}, [searchValue], { wait: 300 }) }, [searchValue], { wait: 300 })
React.useEffect(() => {
getUsers()
}, [])
const getUsers = () => { const getUsers = () => {
setLoading(true) setLoading(true)
dispatch({ dispatch({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment