mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-17 19:25:13 +00:00
25 lines
424 B
Vue
25 lines
424 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<NuxtLink to="/scroll-to-top/watch-query-fn?test=1">
|
||
|
go to the same page with other test
|
||
|
</NuxtLink>
|
||
|
<NuxtLink to="/scroll-to-top/watch-query-fn?other=1">
|
||
|
go to the same page with param other
|
||
|
</NuxtLink>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
watchQuery (newQuery, oldQuery) {
|
||
|
return newQuery.test
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
div {
|
||
|
margin-top: 1500px;
|
||
|
}
|
||
|
</style>
|