diff --git a/src/main.js b/src/main.js index 474fe2bf..595269e5 100644 --- a/src/main.js +++ b/src/main.js @@ -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}` @@ -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,谢谢 ~ 🤩🤩🤩') \ No newline at end of file +console.log('请不要吝啬您的 star,谢谢 ~ 🤩🤩🤩')