mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-16 16:04:34 +00:00
Update:同知识库搜索问题 (#4405)
This commit is contained in:
@@ -50,7 +50,7 @@ const ListItem = () => {
|
|||||||
content: t('app:move.hint')
|
content: t('app:move.hint')
|
||||||
});
|
});
|
||||||
|
|
||||||
const { myApps, loadMyApps, onUpdateApp, setMoveAppId, folderDetail } = useContextSelector(
|
const { myApps, loadMyApps, onUpdateApp, setMoveAppId, folderDetail, setSearchKey } = useContextSelector(
|
||||||
AppListContext,
|
AppListContext,
|
||||||
(v) => v
|
(v) => v
|
||||||
);
|
);
|
||||||
@@ -177,6 +177,7 @@ const ListItem = () => {
|
|||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (AppFolderTypeList.includes(app.type)) {
|
if (AppFolderTypeList.includes(app.type)) {
|
||||||
|
setSearchKey('');
|
||||||
router.push({
|
router.push({
|
||||||
query: {
|
query: {
|
||||||
...router.query,
|
...router.query,
|
||||||
|
Reference in New Issue
Block a user