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
4939271a
authored
Aug 26, 2025
by
伍闲犬
Committed by
GitHub
Aug 26, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix redirect timing while `enableHome` is false; tweak UI (#5538)
parent
2e2e919d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
projects/app/src/pageComponents/chat/ChatWindow/HomeChatWindow.tsx
+1
-1
projects/app/src/pageComponents/chat/UserAvatarPopover.tsx
+1
-1
projects/app/src/pageComponents/chat/slider/index.tsx
+4
-1
projects/app/src/web/core/chat/context/chatSettingContext.tsx
+5
-0
No files found.
projects/app/src/pageComponents/chat/ChatWindow/HomeChatWindow.tsx
View file @
4939271a
...
@@ -190,7 +190,7 @@ const HomeChatWindow = ({ myApps }: Props) => {
...
@@ -190,7 +190,7 @@ const HomeChatWindow = ({ myApps }: Props) => {
};
};
useMount
(()
=>
{
useMount
(()
=>
{
if
(
!
feConfigs
?.
isPlus
||
!
chatSettings
?.
enableHome
)
{
if
(
!
feConfigs
?.
isPlus
)
{
handlePaneChange
(
ChatSidebarPaneEnum
.
TEAM_APPS
);
handlePaneChange
(
ChatSidebarPaneEnum
.
TEAM_APPS
);
}
}
});
});
...
...
projects/app/src/pageComponents/chat/UserAvatarPopover.tsx
View file @
4939271a
...
@@ -63,7 +63,7 @@ const UserAvatarPopover = ({
...
@@ -63,7 +63,7 @@ const UserAvatarPopover = ({
gap=
{
2
}
gap=
{
2
}
>
>
<
Avatar
src=
{
userInfo
?.
avatar
}
bg=
"myGray.200"
borderRadius=
"50%"
w=
{
5
}
h=
{
5
}
/>
<
Avatar
src=
{
userInfo
?.
avatar
}
bg=
"myGray.200"
borderRadius=
"50%"
w=
{
5
}
h=
{
5
}
/>
<
Box
w=
"full"
className=
"textEllipsis
"
>
<
Box
flex=
"1 1 0"
minW=
"0"
whiteSpace=
"pre-wrap
"
>
{
userInfo
?.
username
??
'-'
}
{
userInfo
?.
username
??
'-'
}
</
Box
>
</
Box
>
</
Flex
>
</
Flex
>
...
...
projects/app/src/pageComponents/chat/slider/index.tsx
View file @
4939271a
...
@@ -255,7 +255,10 @@ const NavigationSection = () => {
...
@@ -255,7 +255,10 @@ const NavigationSection = () => {
const
{
t
}
=
useTranslation
();
const
{
t
}
=
useTranslation
();
const
{
feConfigs
}
=
useSystemStore
();
const
{
feConfigs
}
=
useSystemStore
();
const
isEnableHome
=
useContextSelector
(
ChatSettingContext
,
(
v
)
=>
v
.
chatSettings
?.
enableHome
);
const
isEnableHome
=
useContextSelector
(
ChatSettingContext
,
(
v
)
=>
v
.
chatSettings
?.
enableHome
??
true
);
const
isCollapsed
=
useContextSelector
(
ChatSettingContext
,
(
v
)
=>
v
.
collapse
===
1
);
const
isCollapsed
=
useContextSelector
(
ChatSettingContext
,
(
v
)
=>
v
.
collapse
===
1
);
const
onTriggerCollapse
=
useContextSelector
(
ChatSettingContext
,
(
v
)
=>
v
.
onTriggerCollapse
);
const
onTriggerCollapse
=
useContextSelector
(
ChatSettingContext
,
(
v
)
=>
v
.
onTriggerCollapse
);
const
isHomeActive
=
useContextSelector
(
const
isHomeActive
=
useContextSelector
(
...
...
projects/app/src/web/core/chat/context/chatSettingContext.tsx
View file @
4939271a
...
@@ -67,6 +67,11 @@ export const ChatSettingContextProvider = ({ children }: { children: React.React
...
@@ -67,6 +67,11 @@ export const ChatSettingContextProvider = ({ children }: { children: React.React
onSuccess
:
(
data
)
=>
{
onSuccess
:
(
data
)
=>
{
if
(
!
data
)
return
;
if
(
!
data
)
return
;
if
(
!
data
.
enableHome
&&
pane
===
ChatSidebarPaneEnum
.
HOME
)
{
handlePaneChange
(
ChatSidebarPaneEnum
.
TEAM_APPS
);
return
;
}
if
(
if
(
pane
===
ChatSidebarPaneEnum
.
HOME
&&
pane
===
ChatSidebarPaneEnum
.
HOME
&&
appId
!==
data
.
appId
&&
appId
!==
data
.
appId
&&
...
...
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