From 3f276a7eb7b67dfca8d4167b384556d31a6aacfc Mon Sep 17 00:00:00 2001 From: chenke Date: Tue, 22 Feb 2022 16:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=93=E9=A2=98=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/get-img-width.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/utils/get-img-width.js b/src/utils/get-img-width.js index 73ae9b0..ba0e647 100644 --- a/src/utils/get-img-width.js +++ b/src/utils/get-img-width.js @@ -31,6 +31,14 @@ export default function (file, id) { width = 722; height = 406; break; + case 'subjectCover': //专题封面 + width = 650; + height = 350; + break; + case 'subjectBanner': //专题封面 + width = 1585; + height = 224; + break; }; return new Promise(resolve => { let reader = new FileReader();