mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 01:40:51 +00:00
feat: 账单模块
This commit is contained in:
@@ -85,7 +85,7 @@ const SlideBar = ({
|
||||
: {})}
|
||||
onClick={() => {
|
||||
if (item.chatId === chatId) return;
|
||||
router.push(`/chat?chatId=${item.chatId}`);
|
||||
router.replace(`/chat?chatId=${item.chatId}`);
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
@@ -187,7 +187,7 @@ const SlideBar = ({
|
||||
: {})}
|
||||
onClick={async () => {
|
||||
if (item.name === name) return;
|
||||
router.push(`/chat?chatId=${await getChatSiteId(item._id)}`);
|
||||
router.replace(`/chat?chatId=${await getChatSiteId(item._id)}`);
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
|
@@ -152,7 +152,7 @@ const Chat = ({ chatId }: { chatId: string }) => {
|
||||
const resetChat = useCallback(async () => {
|
||||
if (!chatData) return;
|
||||
try {
|
||||
router.push(`/chat?chatId=${await getChatSiteId(chatData.modelId)}`);
|
||||
router.replace(`/chat?chatId=${await getChatSiteId(chatData.modelId)}`);
|
||||
} catch (error: any) {
|
||||
toast({
|
||||
title: error?.message || '生成新对话失败',
|
||||
|
Reference in New Issue
Block a user