Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab UI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
SWD
SWLab UI
Commits
16ac959f
Commit
16ac959f
authored
Sep 02, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lint
parent
daaea9ee
Pipeline
#20800
passed with stages
in 4 minutes and 5 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
08-chat.js
src/js/08-chat.js
+4
-3
No files found.
src/js/08-chat.js
View file @
16ac959f
/* eslint-disable no-undef */
;(
function
()
{
'use strict'
...
...
@@ -64,7 +65,7 @@
messageItem
.
textContent
=
'뱅크웨어글로벌 소프트웨어 연구소 챗봇입니다. 어떤 제품 가이드에 대한 질문을 하시겠습니까?'
chatBody
.
appendChild
(
messageItem
)
products
.
forEach
(
product
=>
{
products
.
forEach
(
(
product
)
=>
{
const
productItem
=
document
.
createElement
(
'li'
)
productItem
.
textContent
=
product
productItem
.
addEventListener
(
'click'
,
()
=>
{
...
...
@@ -170,7 +171,7 @@
docsType
:
docType
,
}
fetch
(
'/ask'
,
{
fetch
(
'
http://182.162.100.161:13002
/ask'
,
{
method
:
'POST'
,
headers
:
{
'Content-Type'
:
'application/json'
,
...
...
@@ -206,7 +207,7 @@
}
}
function
createAiMessage
(
message
)
{
function
createAiMessage
(
message
)
{
const
messageItem
=
document
.
createElement
(
'pre'
)
messageItem
.
className
=
'message ai'
messageItem
.
textContent
=
message
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment