mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 07:31:19 +00:00
fix: permission for favourite apps chatting (#5668)
This commit is contained in:
@@ -27,6 +27,7 @@ import ChatHistorySidebar from '@/pageComponents/chat/slider/ChatSliderSidebar';
|
||||
import ChatSliderMobileDrawer from '@/pageComponents/chat/slider/ChatSliderMobileDrawer';
|
||||
import dynamic from 'next/dynamic';
|
||||
import { getNanoid } from '@fastgpt/global/common/string/tools';
|
||||
import { ChatErrEnum } from '@fastgpt/global/common/error/code/chat';
|
||||
|
||||
const CustomPluginRunBox = dynamic(() => import('@/pageComponents/chat/CustomPluginRunBox'));
|
||||
|
||||
@@ -78,6 +79,10 @@ const AppChatWindow = ({ myApps }: Props) => {
|
||||
errorToast: '',
|
||||
onError(e: any) {
|
||||
if (e?.code && e.code >= 502000) {
|
||||
if (e?.statusText === ChatErrEnum.unAuthChat) {
|
||||
onChangeChatId();
|
||||
return;
|
||||
}
|
||||
handlePaneChange(ChatSidebarPaneEnum.TEAM_APPS);
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user