Commit e9a3e644 by 杨明

fixed

1 parent 385ac92a
......@@ -72,6 +72,7 @@ export default {
},
data() {
return {
limitSize: 20,
size: 'small',
dialogVisibleImg: false,
loading: false,
......@@ -102,6 +103,11 @@ export default {
handleVideoChange(e) {
const self = this
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
upload.init().then(res => {
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!