mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-16 05:36:45 +08:00
13 lines
325 B
TypeScript
13 lines
325 B
TypeScript
import { isFunction } from '@vue/shared'
|
|
import { App } from 'vue'
|
|
const modules = import.meta.globEager('./modules/**/*.ts')
|
|
|
|
export default {
|
|
install: (app: App) => {
|
|
for (const module of Object.values(modules)) {
|
|
const fun = module.default
|
|
isFunction(fun) && fun(app)
|
|
}
|
|
}
|
|
}
|