mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 03:47:12 +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>
|