(feature)(chat-sdk) show showcase button in mobile mode (#516)

This commit is contained in:
williamhliu
2023-12-15 18:19:57 +08:00
committed by GitHub
parent 4b00c16eb7
commit 6daaff8c30
2 changed files with 4 additions and 13 deletions

View File

@@ -317,12 +317,10 @@ const ChatFooter: ForwardRefRenderFunction<any, Props> = (
<div></div>
</div>
)}
{!isMobile && (
<div className={styles.toolItem} onClick={onOpenShowcase}>
<IconFont type="icon-showcase" className={styles.toolIcon} />
<div>showcase</div>
</div>
)}
<div className={styles.toolItem} onClick={onOpenShowcase}>
<IconFont type="icon-showcase" className={styles.toolIcon} />
<div>showcase</div>
</div>
</div>
<div className={styles.composer}>
<div className={styles.composerInputWrapper}>

View File

@@ -1,7 +1,6 @@
import axios from './axiosInstance';
import {
ChatContextType,
DrillDownDimensionType,
EntityInfoType,
HistoryMsgItemType,
HistoryType,
@@ -127,12 +126,6 @@ export function queryDimensionValues(
});
}
// export function querySimilarQuestions(queryText: string, agentId?: number) {
// return axios.get<any>(
// `${prefix}/chat/manage/getSolvedQuery?queryText=${queryText}&agentId=${agentId || 0}`
// );
// }
export function queryEntityInfo(queryId: number, parseId: number) {
return axios.get<EntityInfoType>(
`${prefix}/chat/query/getEntityInfo?queryId=${queryId}&parseId=${parseId}`