Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_reading
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
ww_reading
Commits
21dcb4e4
Commit
21dcb4e4
authored
Aug 15, 2020
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
www
parent
e9139ba2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
form.component.ts
src/app/form/form.component.ts
+5
-5
No files found.
src/app/form/form.component.ts
View file @
21dcb4e4
...
...
@@ -111,10 +111,10 @@ export class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestro
if
(
data
)
{
this
.
item
=
data
;
if
(
this
.
angularCropper
)
{
this
.
angularCropper
.
cropper
.
reset
();
this
.
angularCropper
.
cropper
.
destroy
();
}
//
if (this.angularCropper) {
//
this.angularCropper.cropper.reset();
//
this.angularCropper.cropper.destroy();
//
}
this
.
picId
=
this
.
item
.
contentObj
.
pic_id
;
this
.
currentEditPartIndex
=
-
1
;
this
.
cropperParts
.
length
=
0
;
...
...
@@ -387,7 +387,7 @@ export class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestro
const
cropper
:
any
=
this
.
angularCropper
.
cropper
;
cropper
.
previews
=
[];
this
.
initPart
(
img
,
idx
);
this
.
initPart
(
img
,
idx
);
this
.
save
();
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
detectChanges
();
...
...
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