Commit 944774ec by Mr-Chiang Committed by GitHub

Update:同知识库搜索问题 (#4405)

parent 5b21b4b6
...@@ -50,7 +50,7 @@ const ListItem = () => { ...@@ -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 = () => { ...@@ -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,
......
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 sign in to comment