Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
standalone-anyremote
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qlintonger xeno
standalone-anyremote
Commits
df89f839
You need to sign in or sign up before continuing.
Commit
df89f839
authored
May 06, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws聊天图片+1
parent
ef68a0e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
src/views/remote/videoCall/videoChat.vue
+11
-1
No files found.
src/views/remote/videoCall/videoChat.vue
View file @
df89f839
...
@@ -121,6 +121,16 @@ const uploadMuFile = (option: any, type: string) => {
...
@@ -121,6 +121,16 @@ const uploadMuFile = (option: any, type: string) => {
onError
(
error
)
onError
(
error
)
})
as
any
})
as
any
}
}
function
replaceDomainAndPort
(
url
:
string
,
newDomainAndPort
:
string
)
{
if
(
!
url
)
return
''
const
urlObject
=
new
URL
(
url
);
urlObject
.
hostname
=
newDomainAndPort
.
split
(
':'
)[
0
];
urlObject
.
port
=
newDomainAndPort
.
split
(
':'
)[
1
];
return
urlObject
.
toString
();
}
const
mapChatMessageQueue
=
computed
(
function
()
{
const
mapChatMessageQueue
=
computed
(
function
()
{
return
chatChannelState
.
value
.
messageQueue
.
map
(
function
(
a
:
any
)
{
return
chatChannelState
.
value
.
messageQueue
.
map
(
function
(
a
:
any
)
{
return
{
return
{
...
@@ -131,7 +141,7 @@ const mapChatMessageQueue = computed(function () {
...
@@ -131,7 +141,7 @@ const mapChatMessageQueue = computed(function () {
fromName
:
a
.
fromName
,
fromName
:
a
.
fromName
,
sendTime
:
a
.
happened_time
,
sendTime
:
a
.
happened_time
,
message
:
a
.
title
,
message
:
a
.
title
,
src
:
a
.
title
?.
fileUrl
,
src
:
replaceDomainAndPort
(
a
.
title
?.
fileUrl
,
'ifar.test.com:440'
)
,
fileName
:
a
.
title
?.
fileName
fileName
:
a
.
title
?.
fileName
}
}
}
}
...
...
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