chore(plugins): use return provide

This commit is contained in:
Benjamin Canac
2022-07-13 16:45:48 +02:00
parent 498be15a29
commit b00a3aa7d6
2 changed files with 43 additions and 39 deletions

View File

@@ -24,9 +24,11 @@ export default defineNuxtPlugin((nuxtApp) => {
})
}
nuxtApp.provide('clipboard', {
copy
})
return {
provide: {
copy
}
}
})
declare module '#app' {