Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 6e3d6d12
authored
Dec 29, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
视频上传优化
1 parent
b7a89bd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
src/views/activityRecord/addRecord.vue
src/views/activityRecord/addRecord.vue
View file @
6e3d6d1
...
...
@@ -197,10 +197,6 @@ export default {
},
// 上传视频
handleVideoChange
(
e
)
{
this
.
$notify
({
title
:
'提示'
,
message
:
'视频上传中,请稍后'
})
this
.
loading
=
true
let
file
=
e
.
srcElement
.
files
[
0
]
var
reader
=
new
FileReader
()
...
...
@@ -209,8 +205,13 @@ export default {
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
if
(
!
isLt
)
{
this
.
$message
.
error
(
'上传视频大小不能超过'
+
limitSize
+
'MB!'
)
this
.
loading
=
false
return
}
this
.
$notify
({
title
:
'提示'
,
message
:
'视频上传中,请稍后'
})
document
.
querySelector
(
'.upload-video'
).
value
=
''
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
e
=>
{
...
...
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