Nuxt/test/fixtures/encoding/pages/dynamic/_id.vue

18 lines
301 B
Vue
Raw Normal View History

<template>
<div>
<div>Query (SSR): <pre v-text="q" /> </div>
<div>Params (SSR): <pre v-text="p" /> </div>
</div>
</template>
<script>
export default {
asyncData ({ route }) {
return {
q: JSON.stringify(route.query),
p: JSON.stringify(route.params)
}
}
}
</script>