|
|
@@ -1076,6 +1076,12 @@ function _Chat() {
|
|
|
await fetchApplicationList();
|
|
|
}
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
+ if (appValue) {
|
|
|
+ fetchDefaultQuestion(appValue);
|
|
|
+ }
|
|
|
+ }, [appValue, chatStore.chatMode])
|
|
|
+
|
|
|
useEffect(() => {
|
|
|
if (!location.search.includes('showMenu=false')) {
|
|
|
init();
|
|
|
@@ -1090,16 +1096,6 @@ function _Chat() {
|
|
|
session.appId = appId;
|
|
|
});
|
|
|
}
|
|
|
- }, [])
|
|
|
-
|
|
|
- useEffect(() => {
|
|
|
- if (appValue) {
|
|
|
- fetchDefaultQuestion(appValue);
|
|
|
- }
|
|
|
- }, [appValue, chatStore.chatMode])
|
|
|
-
|
|
|
- useEffect(() => {
|
|
|
- fetchApplicationList();
|
|
|
}, [chatStore.chatMode])
|
|
|
|
|
|
const [inputRows, setInputRows] = useState(2);
|