Skip to content

Commit

Permalink
Merge pull request #107 from Michael1994312/patch-1
Browse files Browse the repository at this point in the history
修复在vite5下报错:globEager is not a function
  • Loading branch information
zds-s authored Feb 20, 2024
2 parents e0eabb7 + 52bb554 commit 15d8e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ app.use(ArcoVue, {})
.use(globalComponents)

// 注册ma-icon图标
const modules = import.meta.globEager('./assets/ma-icons/*.vue')
const modules = import.meta.glob('./assets/ma-icons/*.vue', { eager: true })
for (const path in modules) {
const name = path.match(/([A-Za-z0-9_-]+)/g)[2]
const componentName = `MaIcon${name}`
Expand All @@ -51,4 +51,4 @@ console.log('MineAdmin 官网 https://www.mineadmin.com')
console.log('MineAdmin 文档 https://doc.mineadmin.com')
console.log('MineAdmin Github https://github.com/kanyxmo/MineAdmin')
console.log('MineAdmin-Vue Github https://github.com/kanyxmo/MineAdmin-Vue')
console.log('请不要吝啬您的 star,谢谢 ~ 🤩🤩🤩')
console.log('请不要吝啬您的 star,谢谢 ~ 🤩🤩🤩')

0 comments on commit 15d8e14

Please sign in to comment.