Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
健杭 徐
intern_project_frontend_backend
Commits
fdaa4fce
Commit
fdaa4fce
authored
Jun 16, 2025
by
健杭 徐
Browse files
menu
parent
3fd86fbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
myproject/my-app/src/app/pages/ChatRoom/ChatRoom.tsx
View file @
fdaa4fce
...
@@ -59,7 +59,7 @@ function addNewRoom() {
...
@@ -59,7 +59,7 @@ function addNewRoom() {
newRoom
.
className
=
"
chat-item
"
;
newRoom
.
className
=
"
chat-item
"
;
newRoom
.
innerHTML
=
`
newRoom
.
innerHTML
=
`
<img src="
${
RoomProfile
}
" alt="Avatar" class="avatar" />
<img src="
${
RoomProfile
}
" alt="Avatar" class="avatar" />
<div class="chat-info">
<div class="chat-info"
>
<h3>
${
RoomNameInput
}
</h3>
<h3>
${
RoomNameInput
}
</h3>
<span class="chat-message">New message</span>
<span class="chat-message">New message</span>
<span class="chat-time">Time</span>
<span class="chat-time">Time</span>
...
@@ -85,7 +85,6 @@ function closeOpenDiv() {
...
@@ -85,7 +85,6 @@ function closeOpenDiv() {
(
document
.
getElementsByClassName
(
"
RoomNameInput
"
)[
0
]
as
HTMLInputElement
).
value
=
''
;
(
document
.
getElementsByClassName
(
"
RoomNameInput
"
)[
0
]
as
HTMLInputElement
).
value
=
''
;
}
}
// 单个聊天房间组件
// 单个聊天房间组件
interface
MessageProps
{
interface
MessageProps
{
roomId
:
number
;
// room id
roomId
:
number
;
// room id
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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