Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-content
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1c5e8a57
authored
Jun 13, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
上传图片接口添加不压缩参数
1 parent
9a552f16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Upload/index.vue
src/components/Upload/index.vue
View file @
1c5e8a5
...
@@ -165,7 +165,7 @@ export default {
...
@@ -165,7 +165,7 @@ export default {
const
imgFile
=
event
.
target
.
result
const
imgFile
=
event
.
target
.
result
const
arrBase64
=
imgFile
.
split
(
','
)
const
arrBase64
=
imgFile
.
split
(
','
)
const
base64
=
file
.
name
.
split
(
'.'
).
pop
()
+
'@'
+
arrBase64
[
1
]
const
base64
=
file
.
name
.
split
(
'.'
).
pop
()
+
'@'
+
arrBase64
[
1
]
this
.
$apis
.
discover
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
discover
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
,
compress
:
1
}).
then
(
res
=>
{
this
.
formObj
[
this
.
attr
]
=
res
this
.
formObj
[
this
.
attr
]
=
res
this
.
$emit
(
'uploadSuccess'
,
{
attr
:
this
.
attr
,
url
:
res
})
this
.
$emit
(
'uploadSuccess'
,
{
attr
:
this
.
attr
,
url
:
res
})
this
.
$refs
.
fileRef
.
value
=
''
this
.
$refs
.
fileRef
.
value
=
''
...
...
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