From a5b8caca61acbeee63288dc622b260bad2e21e2c Mon Sep 17 00:00:00 2001 From: cir9no <44470218+cir9no@users.noreply.github.com> Date: Mon, 25 Dec 2023 18:33:09 +0800 Subject: [PATCH] fix/ai: fix qa hit error sdoc --- frontend/src/components/search/ai-search-ask.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/search/ai-search-ask.js b/frontend/src/components/search/ai-search-ask.js index d47a77c92c8..4621e7928c1 100644 --- a/frontend/src/components/search/ai-search-ask.js +++ b/frontend/src/components/search/ai-search-ask.js @@ -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 {
-
{this.state.answeringResult}
+ {/*
{this.state.answeringResult}
s */} + + {/* markdown viewer */} +
+ +
+ {this.state.hitFiles.length > 0 &&