Skip to content

Commit 5856ee5

Browse files
authored
chore: optimize code (#761)
1 parent eaf7e45 commit 5856ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/scripts/docs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function generateDocs(baseData, framework, extra) {
101101
Object.keys(api).forEach((cmp) => {
102102
const folder = isVscode
103103
? current.vscodePath
104-
: path.resolve(current.apiBasePath, cmp==='QRCode'?'qrcode':kebabCaseComponent(cmp));
104+
: path.resolve(current.apiBasePath, kebabCaseComponent(cmp));
105105
fs.mkdir(folder, { recursive: true }, (err) => {
106106
if (err) {
107107
return console.error(err);

0 commit comments

Comments
 (0)