diff --git a/packages/vbenComponents/src/index.ts b/packages/vbenComponents/src/index.ts index 25606b0f..ecf9964d 100644 --- a/packages/vbenComponents/src/index.ts +++ b/packages/vbenComponents/src/index.ts @@ -2,10 +2,9 @@ import type { App, Component } from 'vue' const projectName = 'Vben3' export const components = { install: (app: App) => { - // @ts-ignore // const comp = import.meta.globEager('./**/*.vue') /* 上面写法vite官方已弃用,详情见 https://cn.vitejs.dev/guide/migration-from-v2.html#importmetaglob */ - const comp = import.meta.glob('./**/*.vue', {eager: true}) + const comp = import.meta.glob('./**/*.vue', { eager: true }) Object.keys(comp).forEach((k) => { const c = comp[k].default switch (c.__name) { @@ -25,7 +24,6 @@ export const components = { c.__GRID_ITEM__ = true break } - // console.log(c) // 检测未注册组件 if (!maps.get(c.__name) && !c.name) { warn(c.__name)