feat: 工作编排

This commit is contained in:
wangdan-fit2cloud 2024-06-06 19:21:19 +08:00
parent 29d367bde3
commit 5c165a2560

View File

@ -1,5 +1,5 @@
const icons: any = import.meta.glob('./**.vue', { eager: true })
export function iconComponent(name: string) {
const url = `./icons/${name}.vue`
const url = `./${name}.vue`
return icons[url]?.default || null
}