mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 06:35:10 +00:00
16 lines
285 B
TypeScript
16 lines
285 B
TypeScript
// @ts-expect-error
|
|
import { useHead } from '#head'
|
|
|
|
export default defineNuxtPlugin(() => {
|
|
useHead({
|
|
titleTemplate: '%s - Fixture'
|
|
})
|
|
const path = useRoute()?.path
|
|
return {
|
|
provide: {
|
|
myPlugin: () => 'Injected by my-plugin',
|
|
path: () => path
|
|
}
|
|
}
|
|
})
|