mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +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
|
|
}
|
|
}
|
|
})
|