Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
a17623d4
authored
Mar 26, 2025
by
Finley Ge
Committed by
archer
Mar 27, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: group (#4330)
parent
dd2f7bdc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
projects/app/src/pageComponents/account/team/GroupManage/GroupInfoModal.tsx
+0
-1
projects/app/src/pageComponents/account/team/GroupManage/GroupManageMember.tsx
+5
-2
No files found.
projects/app/src/pageComponents/account/team/GroupManage/GroupInfoModal.tsx
View file @
a17623d4
...
@@ -2,7 +2,6 @@ import { Input, HStack, ModalBody, Button, ModalFooter } from '@chakra-ui/react'
...
@@ -2,7 +2,6 @@ import { Input, HStack, ModalBody, Button, ModalFooter } from '@chakra-ui/react'
import
MyModal
from
'@fastgpt/web/components/common/MyModal'
;
import
MyModal
from
'@fastgpt/web/components/common/MyModal'
;
import
Avatar
from
'@fastgpt/web/components/common/Avatar'
;
import
Avatar
from
'@fastgpt/web/components/common/Avatar'
;
import
FormLabel
from
'@fastgpt/web/components/common/MyBox/FormLabel'
;
import
FormLabel
from
'@fastgpt/web/components/common/MyBox/FormLabel'
;
import
{
useTranslation
}
from
'next-i18next'
;
import
{
useTranslation
}
from
'next-i18next'
;
import
React
from
'react'
;
import
React
from
'react'
;
import
{
useSelectFile
}
from
'@/web/common/file/hooks/useSelectFile'
;
import
{
useSelectFile
}
from
'@/web/common/file/hooks/useSelectFile'
;
...
...
projects/app/src/pageComponents/account/team/GroupManage/GroupManageMember.tsx
View file @
a17623d4
...
@@ -42,12 +42,10 @@ export type GroupFormType = {
...
@@ -42,12 +42,10 @@ export type GroupFormType = {
// 3. Owner can add/remove admins
// 3. Owner can add/remove admins
function
GroupEditModal
({
function
GroupEditModal
({
onClose
,
onClose
,
editGroupId
,
group
,
group
,
onSuccess
onSuccess
}:
{
}:
{
onClose
:
()
=>
void
;
onClose
:
()
=>
void
;
editGroupId
?:
string
;
group
:
MemberGroupListItemType
<
true
>
;
group
:
MemberGroupListItemType
<
true
>
;
onSuccess
:
()
=>
void
;
onSuccess
:
()
=>
void
;
})
{
})
{
...
@@ -61,10 +59,15 @@ function GroupEditModal({
...
@@ -61,10 +59,15 @@ function GroupEditModal({
const
selectedMembersRef
=
useRef
<
HTMLDivElement
>
(
null
);
const
selectedMembersRef
=
useRef
<
HTMLDivElement
>
(
null
);
const
[
members
,
setMembers
]
=
useState
<
GroupMemberItemType
[]
>
([]);
const
[
members
,
setMembers
]
=
useState
<
GroupMemberItemType
[]
>
([]);
const
editGroupId
=
useMemo
(()
=>
{
return
group
?.
_id
;
},
[
group
]);
useMount
(
async
()
=>
{
useMount
(
async
()
=>
{
console
.
log
(
'aaaaaa'
);
if
(
editGroupId
)
{
if
(
editGroupId
)
{
const
data
=
await
getGroupMembers
(
editGroupId
);
const
data
=
await
getGroupMembers
(
editGroupId
);
console
.
log
(
data
);
setMembers
(
data
);
setMembers
(
data
);
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment