We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b75b07e + e62a7f0 commit dd9ad85Copy full SHA for dd9ad85
src/directives/link.js
@@ -32,7 +32,7 @@ export default function (Vue) {
32
// v-link on <a v-link="'path'">
33
e.preventDefault()
34
if (this.destination != null) {
35
- router.go(this.destination)
+ router.go(this.destination, this.replace === true)
36
}
37
} else {
38
// v-link delegate on <div v-link>
@@ -57,6 +57,7 @@ export default function (Vue) {
57
58
update (path) {
59
let router = this.vm.$route.router
60
+ this.replace = typeof path === 'object' ? path.replace : false
61
path = router._normalizePath(path)
62
this.destination = path
63
this.activeRE = path
0 commit comments