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
c98224dd
authored
Dec 10, 2024
by
heheer
Committed by
GitHub
Dec 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: multirow selector default value (#3358)
* fix: multirow selector default value * fix
parent
5cea6015
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
packages/web/components/common/MySelect/MultipleRowSelect.tsx
+1
-1
projects/app/src/pages/api/core/app/create.ts
+2
-1
projects/app/src/pages/app/detail/components/WorkflowComponents/AppCard.tsx
+6
-2
projects/app/src/pages/app/list/index.tsx
+3
-5
No files found.
packages/web/components/common/MySelect/MultipleRowSelect.tsx
View file @
c98224dd
...
@@ -104,7 +104,7 @@ export const MultipleRowSelect = ({
...
@@ -104,7 +104,7 @@ export const MultipleRowSelect = ({
);
);
const
onOpenSelect
=
useCallback
(()
=>
{
const
onOpenSelect
=
useCallback
(()
=>
{
setCloneValue
(
value
);
setCloneValue
(
Array
.
isArray
(
value
)
?
value
:
[]
);
onOpen
();
onOpen
();
},
[
value
,
onOpen
]);
},
[
value
,
onOpen
]);
...
...
projects/app/src/pages/api/core/app/create.ts
View file @
c98224dd
...
@@ -130,7 +130,8 @@ export const onCreateApp = async ({
...
@@ -130,7 +130,8 @@ export const onCreateApp = async ({
chatConfig
,
chatConfig
,
versionName
:
name
,
versionName
:
name
,
username
,
username
,
avatar
:
userAvatar
avatar
:
userAvatar
,
isPublish
:
true
}
}
],
],
{
session
}
{
session
}
...
...
projects/app/src/pages/app/detail/components/WorkflowComponents/AppCard.tsx
View file @
c98224dd
...
@@ -97,9 +97,10 @@ const AppCard = ({ showSaveStatus, isSaved }: { showSaveStatus: boolean; isSaved
...
@@ -97,9 +97,10 @@ const AppCard = ({ showSaveStatus, isSaved }: { showSaveStatus: boolean; isSaved
appName
:
appDetail
.
name
appName
:
appDetail
.
name
})
}
})
}
</
MyBox
>
</
MyBox
>
<
Box
w=
{
'full'
}
h=
{
'1px'
}
bg=
{
'myGray.200'
}
my=
{
1
}
/>
{
appDetail
.
permission
.
hasWritePer
&&
feConfigs
?.
show_team_chat
&&
(
{
appDetail
.
permission
.
hasWritePer
&&
feConfigs
?.
show_team_chat
&&
(
<>
<>
<
Box
w=
{
'full'
}
h=
{
'1px'
}
bg=
{
'myGray.200'
}
my=
{
1
}
/>
<
MyBox
<
MyBox
display=
{
'flex'
}
display=
{
'flex'
}
size=
{
'md'
}
size=
{
'md'
}
...
@@ -113,11 +114,13 @@ const AppCard = ({ showSaveStatus, isSaved }: { showSaveStatus: boolean; isSaved
...
@@ -113,11 +114,13 @@ const AppCard = ({ showSaveStatus, isSaved }: { showSaveStatus: boolean; isSaved
<
MyIcon
name=
{
'core/dataset/tag'
}
w=
{
'16px'
}
mr=
{
2
}
/>
<
MyIcon
name=
{
'core/dataset/tag'
}
w=
{
'16px'
}
mr=
{
2
}
/>
<
Box
fontSize=
{
'sm'
}
>
{
t
(
'app:Team_Tags'
)
}
</
Box
>
<
Box
fontSize=
{
'sm'
}
>
{
t
(
'app:Team_Tags'
)
}
</
Box
>
</
MyBox
>
</
MyBox
>
<
Box
w=
{
'full'
}
h=
{
'1px'
}
bg=
{
'myGray.200'
}
my=
{
1
}
/>
</>
</>
)
}
)
}
{
appDetail
.
permission
.
isOwner
&&
(
{
appDetail
.
permission
.
isOwner
&&
(
<>
<
Box
w=
{
'full'
}
h=
{
'1px'
}
bg=
{
'myGray.200'
}
my=
{
1
}
/>
<
MyBox
<
MyBox
display=
{
'flex'
}
display=
{
'flex'
}
size=
{
'md'
}
size=
{
'md'
}
...
@@ -132,6 +135,7 @@ const AppCard = ({ showSaveStatus, isSaved }: { showSaveStatus: boolean; isSaved
...
@@ -132,6 +135,7 @@ const AppCard = ({ showSaveStatus, isSaved }: { showSaveStatus: boolean; isSaved
<
MyIcon
name=
{
'delete'
}
w=
{
'16px'
}
mr=
{
2
}
/>
<
MyIcon
name=
{
'delete'
}
w=
{
'16px'
}
mr=
{
2
}
/>
<
Box
fontSize=
{
'sm'
}
>
{
t
(
'common:common.Delete'
)
}
</
Box
>
<
Box
fontSize=
{
'sm'
}
>
{
t
(
'common:common.Delete'
)
}
</
Box
>
</
MyBox
>
</
MyBox
>
</>
)
}
)
}
</
Box
>
</
Box
>
)
}
)
}
...
...
projects/app/src/pages/app/list/index.tsx
View file @
c98224dd
...
@@ -3,7 +3,6 @@ import { Box, Flex, Button, useDisclosure, Input, InputGroup } from '@chakra-ui/
...
@@ -3,7 +3,6 @@ import { Box, Flex, Button, useDisclosure, Input, InputGroup } from '@chakra-ui/
import
{
AddIcon
}
from
'@chakra-ui/icons'
;
import
{
AddIcon
}
from
'@chakra-ui/icons'
;
import
{
serviceSideProps
}
from
'@/web/common/utils/i18n'
;
import
{
serviceSideProps
}
from
'@/web/common/utils/i18n'
;
import
{
useUserStore
}
from
'@/web/support/user/useUserStore'
;
import
{
useUserStore
}
from
'@/web/support/user/useUserStore'
;
import
{
useI18n
}
from
'@/web/context/I18n'
;
import
{
useTranslation
}
from
'next-i18next'
;
import
{
useTranslation
}
from
'next-i18next'
;
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
import
MyMenu
from
'@fastgpt/web/components/common/MyMenu'
;
import
MyMenu
from
'@fastgpt/web/components/common/MyMenu'
;
...
@@ -41,7 +40,6 @@ const List = dynamic(() => import('./components/List'));
...
@@ -41,7 +40,6 @@ const List = dynamic(() => import('./components/List'));
const
MyApps
=
()
=>
{
const
MyApps
=
()
=>
{
const
{
t
}
=
useTranslation
();
const
{
t
}
=
useTranslation
();
const
{
appT
}
=
useI18n
();
const
router
=
useRouter
();
const
router
=
useRouter
();
const
{
isPc
}
=
useSystem
();
const
{
isPc
}
=
useSystem
();
const
{
const
{
...
@@ -102,14 +100,14 @@ const MyApps = () => {
...
@@ -102,14 +100,14 @@ const MyApps = () => {
<
Input
<
Input
value=
{
searchKey
}
value=
{
searchKey
}
onChange=
{
(
e
)
=>
setSearchKey
(
e
.
target
.
value
)
}
onChange=
{
(
e
)
=>
setSearchKey
(
e
.
target
.
value
)
}
placeholder=
{
appT
(
'
search_app'
)
}
placeholder=
{
t
(
'app:
search_app'
)
}
maxLength=
{
30
}
maxLength=
{
30
}
pl=
{
8
}
pl=
{
8
}
bg=
{
'white'
}
bg=
{
'white'
}
/>
/>
</
InputGroup
>
</
InputGroup
>
),
),
[
searchKey
,
setSearchKey
,
appT
]
[
searchKey
,
setSearchKey
,
t
]
);
);
return
(
return
(
...
@@ -300,7 +298,7 @@ const MyApps = () => {
...
@@ -300,7 +298,7 @@ const MyApps = () => {
});
});
}
}
}
}
onMove=
{
()
=>
setMoveAppId
(
folderDetail
.
_id
)
}
onMove=
{
()
=>
setMoveAppId
(
folderDetail
.
_id
)
}
deleteTip=
{
appT
(
'
confirm_delete_folder_tip'
)
}
deleteTip=
{
t
(
'app:
confirm_delete_folder_tip'
)
}
onDelete=
{
()
=>
onDeleFolder
(
folderDetail
.
_id
)
}
onDelete=
{
()
=>
onDeleFolder
(
folderDetail
.
_id
)
}
managePer=
{
{
managePer=
{
{
mode
:
'all'
,
mode
:
'all'
,
...
...
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