mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
566fa85fc8
Co-authored-by: Julien Huang <julien.huang@outlook.fr>
18 lines
304 B
Vue
18 lines
304 B
Vue
<script setup lang="ts">
|
|
import { setResponseHeader } from 'h3'
|
|
|
|
definePageMeta({
|
|
value: 'added in pages:extend'
|
|
})
|
|
|
|
if (process.server) {
|
|
setResponseHeader(useRequestEvent(), 'x-extend', useRoute().meta.value as string)
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
added in pages:extend
|
|
</div>
|
|
</template>
|