Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
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
刘怀志
pet-business-web
Commits
8e903576
Commit
8e903576
authored
Sep 08, 2023
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
67455 兽医管理-新增/编辑,证书上传一张照片后,再进行上传,点击裁剪图片的取消按钮后,第一张上传的图片也消失了
parent
1d308a8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
index.vue
src/components/imageCropper/index.vue
+8
-6
No files found.
src/components/imageCropper/index.vue
View file @
8e903576
...
...
@@ -67,12 +67,14 @@ export default {
},
methods
:
{
onCancel
(
type
)
{
if
(
type
===
'cancle'
)
{
this
.
$refs
.
imageCropper
.
getCropBlob
((
blob
)
=>
{
this
.
$emit
(
'cancel'
,
blob
)
})
}
else
{
this
.
$emit
(
'cancel'
,
'cancle'
)
if
(
this
.
visible
)
{
if
(
type
===
'cancle'
)
{
this
.
$refs
.
imageCropper
.
getCropBlob
((
blob
)
=>
{
this
.
$emit
(
'cancel'
,
blob
)
})
}
else
{
this
.
$emit
(
'cancel'
,
'cancle'
)
}
}
this
.
loading
=
false
},
...
...
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