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
af1cff62
authored
Aug 02, 2024
by
lolocoo
Committed by
GitHub
Aug 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(appList): 删除应用后回到聊天选择最后一次对话的应用时提示无该应用bug (#2236)
parent
37607263
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
projects/app/src/pages/app/list/components/List.tsx
+6
-0
No files found.
projects/app/src/pages/app/list/components/List.tsx
View file @
af1cff62
...
...
@@ -39,6 +39,7 @@ import { getTeamMembers } from '@/web/support/user/team/api';
import
{
formatTimeToChatTime
}
from
'@fastgpt/global/common/string/time'
;
import
{
useSystem
}
from
'@fastgpt/web/hooks/useSystem'
;
import
{
useSystemStore
}
from
'@/web/common/system/useSystemStore'
;
import
{
useChatStore
}
from
'@/web/core/chat/context/storeChat'
;
const
HttpEditModal
=
dynamic
(()
=>
import
(
'./HttpPluginEditModal'
));
const
ListItem
=
()
=>
{
...
...
@@ -47,6 +48,8 @@ const ListItem = () => {
const
router
=
useRouter
();
const
{
parentId
=
null
}
=
router
.
query
;
const
{
isPc
}
=
useSystem
();
const
{
lastChatAppId
,
setLastChatAppId
}
=
useChatStore
();
const
{
myApps
,
loadMyApps
,
onUpdateApp
,
setMoveAppId
,
folderDetail
}
=
useContextSelector
(
AppListContext
,
...
...
@@ -83,6 +86,9 @@ const ListItem = () => {
});
const
{
runAsync
:
onclickDelApp
}
=
useRequest2
(
(
id
:
string
)
=>
{
if
(
id
===
lastChatAppId
)
{
setLastChatAppId
(
''
);
}
return
delAppById
(
id
);
},
{
...
...
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