Commit b9e55c33 by 前端

Merge branch 'ym_v3.2.0' into 'v3.2.0'

fixed

See merge request !15
2 parents 385ac92a e9a3e644
...@@ -72,6 +72,7 @@ export default { ...@@ -72,6 +72,7 @@ export default {
}, },
data() { data() {
return { return {
limitSize: 20,
size: 'small', size: 'small',
dialogVisibleImg: false, dialogVisibleImg: false,
loading: false, loading: false,
...@@ -102,6 +103,11 @@ export default { ...@@ -102,6 +103,11 @@ export default {
handleVideoChange(e) { handleVideoChange(e) {
const self = this const self = this
let file = e.target.files[0] let file = e.target.files[0]
const isLt = file.size / 1024 / 1024 < this.limitSize
if (!isLt) {
this.$message.error('上传视频大小不能超过' + this.limitSize + 'MB!')
return true
}
self.loading = true self.loading = true
upload.init().then(res => { upload.init().then(res => {
if (res.status == 0) { if (res.status == 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!