Skip to content

Commit 57a3ac1

Browse files
committed
feat: add vue-gates plugin
1 parent 7774b38 commit 57a3ac1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

client/plugins/gates.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import VueGates from 'vue-gates'
2+
3+
export default defineNuxtPlugin((nuxtApp) => {
4+
nuxtApp.vueApp.use(VueGates as any)
5+
6+
return {
7+
provide: {
8+
gates: nuxtApp.vueApp.gates
9+
}
10+
}
11+
})

0 commit comments

Comments
 (0)