feat: add directive[v-action]

This commit is contained in:
JaguarJack
2023-03-11 15:05:46 +08:00
parent a6a671def5
commit 192e2f512f
3 changed files with 52 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import { bootstrapStore } from '/admin/stores'
import Cache from './cache'
import { bootstrapI18n } from '/admin/i18n'
import guard from '/admin/router/guard'
import { bootstrapDirectives } from '/admin/directives'
/**
* catchadmin
@@ -31,7 +32,7 @@ export default class CatchAdmin {
* admin boot
*/
bootstrap(): void {
this.useElementPlus().usePinia().useI18n().useRouter().mount()
this.useElementPlus().usePinia().useI18n().installDirectives().useRouter().mount()
}
/**
@@ -86,4 +87,15 @@ export default class CatchAdmin {
return this
}
/**
* install directives
*
* @protected
*/
protected installDirectives(): CatchAdmin {
bootstrapDirectives(this.app)
return this
}
}