Showing
2 changed files
with
1 additions
and
24 deletions
@@ -23,29 +23,6 @@ export default { | @@ -23,29 +23,6 @@ export default { | ||
23 | firstImage.width = width; | 23 | firstImage.width = width; |
24 | firstImage.height = height; | 24 | firstImage.height = height; |
25 | } | 25 | } |
26 | - | ||
27 | - | ||
28 | - // if (width && height) { | ||
29 | - // const scale = width / height; | ||
30 | - | ||
31 | - // imageBlocks.forEach(block => { | ||
32 | - // let mogr2 = '?imageMogr2/thumbnail/'; | ||
33 | - | ||
34 | - // if (block.width / block.height > scale) { | ||
35 | - // mogr2 += `x${height}`; | ||
36 | - // } else { | ||
37 | - // mogr2 += `${width}x`; | ||
38 | - // } | ||
39 | - // mogr2 += `/gravity/Center/crop/${width}x${height}`; | ||
40 | - // block.width = width; | ||
41 | - // block.height = height; | ||
42 | - // const image = (block.contentData || '').split('?')[0]; | ||
43 | - | ||
44 | - // if (image) { | ||
45 | - // block.contentData = `${image}${mogr2}`; | ||
46 | - // } | ||
47 | - // }); | ||
48 | - // } | ||
49 | item.index = index; | 26 | item.index = index; |
50 | }); | 27 | }); |
51 | data.forEach(item => { | 28 | data.forEach(item => { |
-
Please register or login to post a comment