|
@@ -24,7 +24,7 @@
|
|
|
<img :src="require('@/assets/images/uploadplus.png')" alt="">
|
|
|
<upload
|
|
|
ref="uploadFile"
|
|
|
- :limit="200"
|
|
|
+ :limit="11200"
|
|
|
:mediaType="['application','image','video']"
|
|
|
@file-change="onFileChange"
|
|
|
></upload>
|
|
@@ -145,11 +145,16 @@ export default {
|
|
|
tips:'上传文件数量不超过5个'
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ console.log(data.files);
|
|
|
+ let type = ''
|
|
|
+ if (data.files[0].name.indexOf('.rar')>-1) {
|
|
|
+ type = 'application'
|
|
|
+ }
|
|
|
let tmp = {
|
|
|
id:'_' + this.$randomWord(false,8,8),
|
|
|
file:data.files[0],
|
|
|
- type:data.files[0].type.split('/')[0],
|
|
|
+ type:type || data.files[0].type.split('/')[0],
|
|
|
name:data.files[0].name,
|
|
|
img:window.URL.createObjectURL(data.files[0])
|
|
|
}
|