|
|
@@ -969,6 +969,7 @@ function _Chat() {
|
|
|
type AppList = {
|
|
|
label: string,
|
|
|
value: string,
|
|
|
+ desc: string,
|
|
|
}[];
|
|
|
|
|
|
const [appList, setAppList] = useState<AppList>([]);
|
|
|
@@ -987,6 +988,7 @@ function _Chat() {
|
|
|
return {
|
|
|
label: item.name,
|
|
|
value: item.appId,
|
|
|
+ desc: item.desc,
|
|
|
}
|
|
|
})
|
|
|
setAppList(list);
|
|
|
@@ -1859,11 +1861,12 @@ function _Chat() {
|
|
|
<h1 style={{ textAlign: 'center' }}>
|
|
|
{getAppName()}
|
|
|
</h1>
|
|
|
- <p style={{ textAlign: 'center' }}>创建人: admin</p>
|
|
|
- <p style={{ textAlign: 'center' }}>
|
|
|
+ {/* <p style={{ textAlign: 'center' }}>
|
|
|
您好,欢迎使用建科·小智使用知识库创建的{getAppName()}
|
|
|
+ </p> */}
|
|
|
+ <p style={{ textAlign: 'center' }}>
|
|
|
+ {appValue ? appList.find(item => item.value)?.desc : ''}
|
|
|
</p>
|
|
|
- <p style={{ textAlign: 'center' }}>如果需要问本企业相关的其他问题请点击左上角,选中切换的知识库问答应用使用</p>
|
|
|
<p>我猜您可能想问:</p>
|
|
|
{
|
|
|
questionList.map((item, index) => {
|