perf: dynamic
This commit is contained in:
@@ -79,7 +79,7 @@ const ChatHistorySlider = ({
|
||||
const concatHistory = useMemo<HistoryItemType[]>(
|
||||
() =>
|
||||
!activeChatId ? [{ id: activeChatId, title: t('chat.New Chat') }].concat(history) : history,
|
||||
[activeChatId, history]
|
||||
[activeChatId, history, t]
|
||||
);
|
||||
|
||||
const isShare = useMemo(() => !appId || !userInfo, [appId, userInfo]);
|
||||
|
||||
@@ -16,7 +16,7 @@ const ToolMenu = ({ history }: { history: ChatItemType[] }) => {
|
||||
icon: 'chat',
|
||||
label: '新对话',
|
||||
onClick: () => {
|
||||
router.push({
|
||||
router.replace({
|
||||
query: {
|
||||
appId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user