Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ_Game_12
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
JJ_Game_12
Commits
f7167d44
Commit
f7167d44
authored
Jun 14, 2024
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
b421624f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
form.component.html
form/src/app/form/form.component.html
+2
-2
form.component.ts
form/src/app/form/form.component.ts
+3
-1
No files found.
form/src/app/form/form.component.html
View file @
f7167d44
...
...
@@ -2,8 +2,8 @@
<div
style=
"width: 600px; border: 1px #ccc solid; border-radius: 15px; padding: 10px;"
>
<app-upload-video
[
videoUrl
]="
item
?.
contentObj
?
.
video_url
?.
replace
('.
mp4
',
'
_h
.
mp4
')
||
''"
[
showUploadBtn
]="
true
"
[
showCapture
]="
false
"
(
videoUploaded
)="
onVideoUploaded
($
event
,
'
video_url
',
item
.
contentObj
)"
(
onCapture
)="
handleOnCapture
($
event
,
1
)"
></app-upload-video>
<div
*
ngIf=
"item.contentObj"
style=
"width: 600px; border: 1px #ccc solid; border-radius: 15px; padding: 10px;"
>
<app-upload-video
[
videoUrl
]="
item
.
contentObj
.
video_url
?.
replace
('.
mp4
',
'
_h
.
mp4
')
||
''"
[
showUploadBtn
]="
true
"
[
showCapture
]="
false
"
(
videoUploaded
)="
onVideoUploaded
($
event
,
'
video_url
',
item
.
contentObj
)"
(
onCapture
)="
handleOnCapture
($
event
,
1
)"
></app-upload-video>
</div>
...
...
form/src/app/form/form.component.ts
View file @
f7167d44
...
...
@@ -532,7 +532,9 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
if
(
this
.
item
?.
contentObj
?.
video_url
)
{
console
.
log
(
'
has _l url
'
);
this
.
item
.
contentObj
.
video_url
=
this
.
item
.
contentObj
.
video_url
.
replace
(
'
_l.mp4
'
,
'
.mp4
'
);
const
newUrl
=
this
.
item
.
contentObj
.
video_url
.
replace
(
'
_l.mp4
'
,
'
.mp4
'
);
console
.
log
(
'
new Url
'
+
newUrl
);
this
.
item
.
contentObj
.
video_url
=
newUrl
;
}
}
...
...
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