|
@@ -7,7 +7,6 @@
|
|
|
@preview="handlePreview"
|
|
|
@change="handleChange"
|
|
|
:beforeUpload="beforeUpload"
|
|
|
- :preview-file="previewFile"
|
|
|
:data="params"
|
|
|
:value="comVal"
|
|
|
>
|
|
@@ -116,7 +115,7 @@ export default {
|
|
|
if (this.listType == 'text') {
|
|
|
return
|
|
|
}
|
|
|
- console.log(file,'8888888888')
|
|
|
+ console.log(file, '8888888888')
|
|
|
this.previewImage = file.url || file.thumbUrl
|
|
|
// this.previewImage = file.response.data
|
|
|
this.previewVisible = true
|
|
@@ -172,9 +171,9 @@ export default {
|
|
|
|
|
|
// 文件大小
|
|
|
const isLt2M = file.size / 1024 / 1024 < this.fileSize
|
|
|
- if (!isLt2M ) {
|
|
|
+ if (!isLt2M) {
|
|
|
if (tip != 0) {
|
|
|
- if (this.fileType !='video/mp4') {
|
|
|
+ if (this.fileType != 'video/mp4') {
|
|
|
this.$message.error('图片不能超过 ' + this.fileSize + 'MB!')
|
|
|
} else {
|
|
|
this.$message.error('视频不能超过 ' + this.fileSize + 'MB!')
|