修复开发环境反复刷新的问题

This commit is contained in:
sijinhui 2024-02-21 17:23:38 +08:00
parent 28843eed82
commit 262164c5ad

View File

@ -502,7 +502,8 @@ export function ChatActions(props: {
); );
showToast(nextModel); showToast(nextModel);
} }
}, [chatStore, currentModel, models, props]); // eslint-disable-next-line react-hooks/exhaustive-deps
}, [chatStore, currentModel, models]);
return ( return (
<div className={styles["chat-input-actions"]}> <div className={styles["chat-input-actions"]}>