mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-15 02:14:44 +00:00
16 lines
293 B
JavaScript
16 lines
293 B
JavaScript
import { onGlobalSetup, ref } from '@nuxtjs/composition-api'
|
|
|
|
import { defineNuxtPlugin } from '#app'
|
|
|
|
export default defineNuxtPlugin(() => {
|
|
const globalsetup = ref('🚧')
|
|
onGlobalSetup(() => {
|
|
globalsetup.value = '✅'
|
|
})
|
|
return {
|
|
provide: {
|
|
globalsetup
|
|
}
|
|
}
|
|
})
|