|
@@ -82,6 +82,7 @@ export default {
|
|
|
// headers: {
|
|
|
// Authorization: Ticket.get() && "Bearer " + Ticket.get().access_token
|
|
|
// },
|
|
|
+ method: 'octet',
|
|
|
query() {}
|
|
|
},
|
|
|
attrs: {
|
|
@@ -210,13 +211,15 @@ export default {
|
|
|
|
|
|
computeMD5Success(md5, file) {
|
|
|
// 将自定义参数直接加载uploader实例的opts上
|
|
|
+ console.log(this.uploader)
|
|
|
Object.assign(this.uploader.opts, {
|
|
|
query: {
|
|
|
...this.params,
|
|
|
+ Md5: md5
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- file.uniqueIdentifier = md5;
|
|
|
+ file.uniqueIdentifier = this.params.id;
|
|
|
file.resume();
|
|
|
this.statusRemove(file.id);
|
|
|
},
|
|
@@ -397,15 +400,15 @@ export default {
|
|
|
content: '' !important;
|
|
|
}
|
|
|
|
|
|
- &[icon=image] {
|
|
|
- // background: url(./images/image-icon.png);
|
|
|
- }
|
|
|
- &[icon=video] {
|
|
|
- // background: url(./images/video-icon.png);
|
|
|
- }
|
|
|
- &[icon=document] {
|
|
|
- // background: url(./images/text-icon.png);
|
|
|
- }
|
|
|
+ // &[icon=image] {
|
|
|
+ // background: url(./images/image-icon.png);
|
|
|
+ // }
|
|
|
+ // &[icon=video] {
|
|
|
+ // background: url(./images/video-icon.png);
|
|
|
+ // }
|
|
|
+ // &[icon=document] {
|
|
|
+ // background: url(./images/text-icon.png);
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
/deep/ .uploader-file-actions > span {
|