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