|
@ -31,6 +31,14 @@ export default function (file, id) { |
|
|
width = 722; |
|
|
width = 722; |
|
|
height = 406; |
|
|
height = 406; |
|
|
break; |
|
|
break; |
|
|
|
|
|
case 'subjectCover': //专题封面
|
|
|
|
|
|
width = 650; |
|
|
|
|
|
height = 350; |
|
|
|
|
|
break; |
|
|
|
|
|
case 'subjectBanner': //专题封面
|
|
|
|
|
|
width = 1585; |
|
|
|
|
|
height = 224; |
|
|
|
|
|
break; |
|
|
}; |
|
|
}; |
|
|
return new Promise(resolve => { |
|
|
return new Promise(resolve => { |
|
|
let reader = new FileReader(); |
|
|
let reader = new FileReader(); |
|
|