Add share link hook (#351)

This commit is contained in:
Archer
2023-09-25 23:12:42 +08:00
committed by GitHub
parent 9136c9306a
commit 63cd379682
29 changed files with 430 additions and 98 deletions

View File

@@ -139,6 +139,7 @@ const ChatBox = (
userAvatar,
variableModules,
welcomeText,
active = true,
onUpdateVariable,
onStartChat,
onDelMessage
@@ -152,6 +153,7 @@ const ChatBox = (
userAvatar?: string;
variableModules?: VariableItemType[];
welcomeText?: string;
active?: boolean;
onUpdateVariable?: (e: Record<string, any>) => void;
onStartChat?: (e: StartChatFnProps) => Promise<{
responseText: string;
@@ -860,7 +862,7 @@ const ChatBox = (
</Box>
</Box>
{/* input */}
{onStartChat && variableIsFinish ? (
{onStartChat && variableIsFinish && active ? (
<Box m={['0 auto', '10px auto']} w={'100%'} maxW={['auto', 'min(750px, 100%)']} px={[0, 5]}>
<Box
py={'18px'}