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
506bd623
Commit
506bd623
authored
Sep 24, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove semicolone
parent
92be2dc3
Pipeline
#21190
failed with stages
in 1 minute and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
08-chat.js
src/js/08-chat.js
+8
-8
No files found.
src/js/08-chat.js
View file @
506bd623
...
...
@@ -169,13 +169,13 @@
return
}
const
chatLoader
=
document
.
createElement
(
'div'
)
;
chatLoader
.
className
=
'chat-loader'
;
const
loader
=
document
.
createElement
(
'div'
)
;
loader
.
className
=
'loader'
;
chatLoader
.
appendChild
(
loader
)
;
chatBody
.
appendChild
(
chatLoader
)
;
chatBody
.
scrollTop
=
chatBody
.
scrollHeight
;
const
chatLoader
=
document
.
createElement
(
'div'
)
chatLoader
.
className
=
'chat-loader'
const
loader
=
document
.
createElement
(
'div'
)
loader
.
className
=
'loader'
chatLoader
.
appendChild
(
loader
)
chatBody
.
appendChild
(
chatLoader
)
chatBody
.
scrollTop
=
chatBody
.
scrollHeight
isLoading
=
true
...
...
@@ -212,7 +212,7 @@
console
.
log
(
'chunk >>>>> '
,
chunk
)
// 로더 제거 후 메시지 표시
if
(
chatLoader
)
chatBody
.
removeChild
(
chatLoader
)
;
if
(
chatLoader
)
chatBody
.
removeChild
(
chatLoader
)
typeEffect
(
messageItem
,
chunk
,
30
)
chatBody
.
scrollTop
=
chatBody
.
scrollHeight
...
...
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