perf: 参数值
This commit is contained in:
@@ -40,6 +40,9 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
|
||||
// 去重
|
||||
const searchRes = await Promise.allSettled(
|
||||
data.map(async ([q, a]) => {
|
||||
if (!q || !a) {
|
||||
return Promise.reject('q/a为空');
|
||||
}
|
||||
try {
|
||||
q = q.replace(/\\n/g, '\n');
|
||||
a = a.replace(/\\n/g, '\n');
|
||||
|
||||
@@ -88,7 +88,7 @@ const Chat = ({ chatId }: { chatId: string }) => {
|
||||
throttle(() => {
|
||||
if (!ChatBox.current) return;
|
||||
const isBottom =
|
||||
ChatBox.current.scrollTop + ChatBox.current.clientHeight + 50 >=
|
||||
ChatBox.current.scrollTop + ChatBox.current.clientHeight + 80 >=
|
||||
ChatBox.current.scrollHeight;
|
||||
|
||||
isBottom && scrollToBottom('auto');
|
||||
|
||||
@@ -51,7 +51,7 @@ const NumberSetting = () => {
|
||||
账号信息
|
||||
</Box>
|
||||
<Flex mt={6} alignItems={'center'}>
|
||||
<Box flex={'0 0 60px'}>用户账号:</Box>
|
||||
<Box flex={'0 0 60px'}>账号:</Box>
|
||||
<Box>{userInfo?.username}</Box>
|
||||
</Flex>
|
||||
<Box mt={6}>
|
||||
|
||||
Reference in New Issue
Block a user