Commit ec761d38 by 前端

fixed

1 parent 796ca205
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
}, },
data() { data() {
return { return {
limitSize: 20, limitSize: 1024,
size: 'small', size: 'small',
dialogVisibleImg: false, dialogVisibleImg: false,
loading: false, loading: false,
...@@ -104,10 +104,10 @@ export default { ...@@ -104,10 +104,10 @@ export default {
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 const isLt = file.size / 1024 / 1024 < this.limitSize
if (!isLt) { // if (!isLt) {
this.$message.error('上传视频大小不能超过' + this.limitSize + 'MB!') // this.$message.error('上传视频大小不能超过' + this.limitSize + 'MB!')
return true // 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!