We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,:smile: 对于已产生过categories的文件(大多数用户都是如此),当执行index.js到如下时:
index.js
let categories = metadata.categories; data.categories.forEach(item => { if (typeof item === 'string') { categories.push(item); } else if (item.name) { categories.push(item.name); } });
会因为对已识别过的categories作二次添加,造成如下后果:
建议如下修复,以避免对重复categories的添加:
... } else if (item.name && categories.indexOf(item.name)<0) { categories.push(item.name); } ...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,:smile:
对于已产生过categories的文件(大多数用户都是如此),当执行
index.js
到如下时:会因为对已识别过的categories作二次添加,造成如下后果:

建议如下修复,以避免对重复categories的添加:
The text was updated successfully, but these errors were encountered: