mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
b116d0ded4
[release]
22 lines
312 B
Vue
22 lines
312 B
Vue
<template>
|
|
<div>
|
|
<NLink v-if="i>0" :to="`./${i-1}`">
|
|
Previous
|
|
</NLink>
|
|
Page {{ i }}
|
|
<NLink v-if="i<5" :to="`./${i+1}`">
|
|
Next
|
|
</NLink>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
computed: {
|
|
i () {
|
|
return parseInt(this.$route.params.i) || 0
|
|
}
|
|
}
|
|
}
|
|
</script>
|