|
|
@@ -1076,6 +1076,16 @@ function _Chat() {
|
|
|
await fetchApplicationList();
|
|
|
}
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
+ const search = location.search;
|
|
|
+ const params = new URLSearchParams(search);
|
|
|
+ const chatMode = params.get('chatMode');
|
|
|
+
|
|
|
+ if (chatMode) {
|
|
|
+ setSelectedFruit(chatMode as "ONLINE" | "LOCAL");
|
|
|
+ }
|
|
|
+ }, [])
|
|
|
+
|
|
|
useEffect(() => {
|
|
|
if (appValue) {
|
|
|
fetchDefaultQuestion(appValue);
|