Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 098d35a5
authored
Jun 27, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
4de9ed08
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
api/module/systemApi.js
api/module/systemApi.js
View file @
098d35a
...
@@ -57,7 +57,10 @@ const imgToBase64 = (list, urlKey) => {
...
@@ -57,7 +57,10 @@ const imgToBase64 = (list, urlKey) => {
responseType
:
'arraybuffer'
,
responseType
:
'arraybuffer'
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
const
base64
=
`data:image/png;base64,
${
uni
.
arrayBufferToBase64
(
res
.
data
)}
`
const
base64
=
`data:image/png;base64,
${
uni
.
arrayBufferToBase64
(
res
.
data
)}
`
if
(
urlKey
)
newList
[
index
][
urlKey
]
=
base64
if
(
urlKey
)
{
newList
[
index
][
urlKey
]
=
base64
newList
[
index
][
`original_
${
urlKey
}
`
]
=
e
[
urlKey
]
}
else
newList
[
index
]
=
base64
else
newList
[
index
]
=
base64
arr
.
push
(
e
)
arr
.
push
(
e
)
if
(
arr
.
length
===
list
.
length
)
resolve
(
newList
)
if
(
arr
.
length
===
list
.
length
)
resolve
(
newList
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment