mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 17:43:59 +00:00
12 lines
286 B
JavaScript
12 lines
286 B
JavaScript
|
import { onGlobalSetup, ref } from '@nuxtjs/composition-api'
|
||
|
|
||
|
import { defineNuxtPlugin } from '#app'
|
||
|
|
||
|
export default defineNuxtPlugin((nuxt) => {
|
||
|
const globalsetup = ref('🚧')
|
||
|
onGlobalSetup(() => {
|
||
|
globalsetup.value = '✅'
|
||
|
})
|
||
|
nuxt.provide('globalsetup', globalsetup)
|
||
|
})
|