diff --git a/web/src/pages/enterprise/components/select-content/hook.ts b/web/src/pages/enterprise/components/select-content/hook.ts index ce91b523..426783e5 100644 --- a/web/src/pages/enterprise/components/select-content/hook.ts +++ b/web/src/pages/enterprise/components/select-content/hook.ts @@ -143,7 +143,7 @@ export const useAction = (props: SelectContentHookProps) => { SendObjOrGroup.Object ) - const [updatedDeptUserList, setUpdatedDeptUserList] = useState(false) + const [isUpdatedDeptUser, setIsUpdatedDeptUser] = useState(false) const [editor, setEditor] = useState(null) @@ -446,7 +446,7 @@ export const useAction = (props: SelectContentHookProps) => { } return item }) - setUpdatedDeptUserList(true) + setIsUpdatedDeptUser(true) setDepartmentAndUserList(array) } }, [isLoadStop]) @@ -1132,6 +1132,6 @@ export const useAction = (props: SelectContentHookProps) => { setHtml, setHtmlText, tagsValue, - updatedDeptUserList, + isUpdatedDeptUser, } } diff --git a/web/src/pages/enterprise/components/select-content/index.tsx b/web/src/pages/enterprise/components/select-content/index.tsx index 988513ca..992bede1 100644 --- a/web/src/pages/enterprise/components/select-content/index.tsx +++ b/web/src/pages/enterprise/components/select-content/index.tsx @@ -104,7 +104,7 @@ const SelectContent = memo( editorConfig, setHtmlText, tagsValue, - updatedDeptUserList, + isUpdatedDeptUser, } = useAction({ outerSendData: sendData, getSendData, @@ -397,7 +397,7 @@ const SelectContent = memo( setChatId={setChatId} sendType={sendType} setSendType={setSendType} - isUpdatedDeptUser={updatedDeptUserList} + isUpdatedDeptUser={isUpdatedDeptUser} />