Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cartoon_video
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
cartoon_video
Commits
17e91ab6
Commit
17e91ab6
authored
Nov 18, 2024
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 上传进度条控制
parent
ac7dd246
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
upload-video.component.ts
form/src/app/common/upload-video/upload-video.component.ts
+3
-3
No files found.
form/src/app/common/upload-video/upload-video.component.ts
View file @
17e91ab6
...
...
@@ -119,8 +119,7 @@ export class UploadVideoComponent implements OnChanges, OnDestroy {
break
;
case
'
progress
'
:
this
.
progress
=
info
.
event
.
percent
;
this
.
doProgress
(
this
.
progress
);
this
.
doProgress
(
info
.
event
.
percent
);
break
;
}
}
...
...
@@ -199,7 +198,8 @@ export class UploadVideoComponent implements OnChanges, OnDestroy {
doProgress
=
(
p
)
=>
{
if
(
p
>
1
)
{
p
=
1
;
this
.
progress
=
p
;
return
;
}
if
(
p
<
0
)
{
p
=
0
;
...
...
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