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
7e33d3f8
Commit
7e33d3f8
authored
May 15, 2024
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
录制完毕初步+2
parent
b51f8147
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
3 deletions
+17
-3
src/api/alova-instance.ts
+1
-0
src/views/remote/contacts/eventDetails.vue
+7
-1
src/views/remote/videoCall/videoChat.vue
+8
-1
src/views/remote/videoCall/videoTools.vue
+1
-1
No files found.
src/api/alova-instance.ts
View file @
7e33d3f8
...
...
@@ -85,6 +85,7 @@ export const alova = createAlova({
}
else
{
console
.
log
(
'upload here'
,
method
,
json
);
if
(
method
.
url
===
'/admin/uploadMuFile'
)
{
json
.
data
.
oURL
=
json
.
data
.
url
json
.
data
.
url
=
json
.
data
.
url
.
replace
(
json
.
data
.
url
.
substring
(
0
,
json
.
data
.
url
.
indexOf
(
'/upload'
)),
method
.
baseURL
...
...
src/views/remote/contacts/eventDetails.vue
View file @
7e33d3f8
...
...
@@ -139,10 +139,16 @@ const getInitiatorInfo = (id) => {
}
//预览文件
const
previewRef
=
ref
()
function
convertURL
(
string
:
string
)
{
return
string
.
replace
(
string
.
substring
(
0
,
string
.
indexOf
(
'/upload'
)),
location
.
origin
)
}
const
handlePreview
=
(
file
:
any
)
=>
{
const
content
=
JSON
.
parse
(
file
.
content
)
const
params
=
{
src
:
con
tent
.
fileUrl
,
src
:
con
vertURL
(
content
.
fileUrl
)
,
type
:
file
.
fileType
}
previewRef
.
value
!
.
open
(
params
)
...
...
src/views/remote/videoCall/videoChat.vue
View file @
7e33d3f8
...
...
@@ -131,6 +131,13 @@ const uploadMuFile = (option: any, type: string) => {
)
}
function
convertURL
(
string
:
string
)
{
return
string
.
replace
(
string
.
substring
(
0
,
string
.
indexOf
(
'/upload'
)),
location
.
origin
)
}
const
mapChatMessageQueue
=
computed
(
function
()
{
return
chatChannelState
.
value
.
messageQueue
.
map
(
function
(
a
:
any
)
{
return
{
...
...
@@ -141,7 +148,7 @@ const mapChatMessageQueue = computed(function () {
fromName
:
a
.
fromName
,
sendTime
:
a
.
happened_time
,
message
:
a
.
title
,
src
:
a
.
title
?.
fileUrl
,
src
:
convertURL
(
a
.
title
?.
fileUrl
as
string
)
,
fileName
:
a
.
title
?.
fileName
}
}
...
...
src/views/remote/videoCall/videoTools.vue
View file @
7e33d3f8
...
...
@@ -152,7 +152,7 @@ function initialPaintDone(blob: Blob) {
.
Post
<
any
>
(
'/admin/uploadMuFile'
,
params
,
{
meta
:
{
isUpload
:
true
}
})
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
AnyR
?.
agora
.
startMark
(
res
.
data
.
url
)
AnyR
?.
agora
.
startMark
(
res
.
data
.
oURL
)
}
})
}
...
...
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