mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
18 lines
301 B
Vue
18 lines
301 B
Vue
<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>
|