Skip to content

Commit

Permalink
fix: 修复报错
Browse files Browse the repository at this point in the history
  • Loading branch information
yy-wow committed Jan 9, 2025
1 parent 50ef894 commit 775f6c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugins/materials/src/composable/useMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ const parseMaterialsDependencies = (materialBundle) => {
}

if (Array.isArray(pkg.css)) {
pkg.css.map(stylesDeps.add)
pkg.css.forEach((item) => stylesDeps.add(item))
} else {
stylesDeps.add(pkg.css)
}
Expand All @@ -359,7 +359,7 @@ const parseMaterialsDependencies = (materialBundle) => {
}

if (Array.isArray(styles)) {
styles.map(stylesDeps.add)
styles.forEach((item) => stylesDeps.add(item))
} else {
stylesDeps.add(styles)
}
Expand Down

0 comments on commit 775f6c9

Please sign in to comment.