mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-05-02 16:36:36 +08:00
11 lines
243 B
TypeScript
11 lines
243 B
TypeScript
import type { App } from 'vue'
|
|
|
|
export function install(app: App) {
|
|
/* 自动注册指令 */
|
|
Object.values(
|
|
import.meta.glob<{ install: (app: App) => void }>('@/directives/*.ts', {
|
|
eager: true,
|
|
}),
|
|
).map(i => app.use(i))
|
|
}
|