Skip to content

Commit

Permalink
feat: research page view에 검색어 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
inpink committed Sep 30, 2024
1 parent 8c69828 commit 93e735b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public String researchResult(@RequestParam("query") String query, Model model) {
List<String> words = (List<String>) predictedAndTokens.get("words");
String refinedPredictedClass = StringUtil.deleteLineSeparator(predictedClass);

model.addAttribute("query", query);
model.addAttribute("predictedClass", predictedClass);

List<BasePostRequest> knuPlusAi = searchService.knuPlusAi(
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/templates/research/researchPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</div>
</div>

<h1 th:if="${query != null}">검색어: <span th:text="${query}"></span></h1>
<!-- 새로운 섹션 추가 -->
<div class="row section-container">
<div class="col-md-3">
Expand Down

0 comments on commit 93e735b

Please sign in to comment.