1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

Merge pull request #5857 from haiwen/fix/ai-qa-search-error

fix/ai: fix qa hit error sdoc
This commit is contained in:
JoinTyang
2023-12-25 20:03:58 +08:00
committed by GitHub

View File

@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import isHotkey from 'is-hotkey';
import { MarkdownViewer } from '@seafile/seafile-editor';
import { seafileAPI } from '../../utils/seafile-api';
import { gettext } from '../../utils/constants';
import toaster from '../toast';
@@ -173,7 +174,16 @@ export default class AISearchAsk extends Component {
<AISearchRobot/>
</div>
<div className="ai-search-ask-body-right">
<div>{this.state.answeringResult}</div>
{/* <div>{this.state.answeringResult}</div>s */}
{/* markdown viewer */}
<div className="ai-search-ask-body-markdown">
<MarkdownViewer
value={this.state.answeringResult}
isShowOutline={false}
/>
</div>
<AISearchHelp />
{this.state.hitFiles.length > 0 &&
<AISearchRefrences