We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1381850 commit 59b6da3Copy full SHA for 59b6da3
src/components/link.js
@@ -9,6 +9,8 @@ import { warn } from '../util/warn'
9
const toTypes: Array<Function> = [String, Object]
10
const eventTypes: Array<Function> = [String, Array]
11
12
+const noop = () => {}
13
+
14
export default {
15
name: 'RouterLink',
16
props: {
@@ -68,9 +70,9 @@ export default {
68
70
const handler = e => {
69
71
if (guardEvent(e)) {
72
if (this.replace) {
- router.replace(location)
73
+ router.replace(location, null, noop)
74
} else {
- router.push(location)
75
+ router.push(location, null, noop)
76
}
77
78
0 commit comments