提交 6df46e047bf67b8795bd91c5d5b3bfb59e5f1564

作者 sorrycc
1 个父辈 dd5f1b0c

chore: update generate script

正在显示 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 });
注册登录 后发表评论