提交 3f1fbe11 编写于 作者: 雪洛's avatar 雪洛

fix: 修复getVideoInfo返回的size单位不为KB的Bug

上级 b56e8957
......@@ -32,7 +32,7 @@ export function getVideoInfo ({
clearTimeout(handle)
video.onerror = null
invoke(callbackId, Object.assign(result, {
size: file.size,
size: Math.ceil((file ? file.size : 0) / 1024),
duration: video.duration || 0,
width: video.videoWidth || 0,
height: video.videoHeight || 0,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册