正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -10,12 +10,13 @@ function parseJSON(root) { | @@ -10,12 +10,13 @@ function parseJSON(root) { | ||
10 | const absDirPath = join(root, dir); | 10 | const absDirPath = join(root, dir); |
11 | const pkg = require(join(absDirPath, 'package.json')); | 11 | const pkg = require(join(absDirPath, 'package.json')); |
12 | const url = `https://github.com/umijs/umi-blocks/tree/master/${type}/${dir}`; | 12 | const url = `https://github.com/umijs/umi-blocks/tree/master/${type}/${dir}`; |
13 | + const img = `https://github.com/umijs/umi-blocks/blob/master/${type}/${dir}/snapshot.png?raw=true`; | ||
13 | memo.push({ | 14 | memo.push({ |
14 | name: pkg.name, | 15 | name: pkg.name, |
15 | description: pkg.description, | 16 | description: pkg.description, |
16 | url, | 17 | url, |
17 | tags: [], | 18 | tags: [], |
18 | - img: `${url}/snapshot.png?raw=true`, | 19 | + img, |
19 | previewUrl: '', | 20 | previewUrl: '', |
20 | features: [], | 21 | features: [], |
21 | }); | 22 | }); |
请
注册
或
登录
后发表评论