mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-01 18:07:22 +00:00
12 lines
292 B
JavaScript
12 lines
292 B
JavaScript
import { onGlobalSetup, ref } from '@nuxtjs/composition-api'
|
|
|
|
import { defineNuxtPlugin } from '#app'
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
const globalsetup = ref('🚧')
|
|
onGlobalSetup(() => {
|
|
globalsetup.value = '✅'
|
|
})
|
|
nuxtApp.provide('globalsetup', globalsetup)
|
|
})
|