Skip to content

Commit 70d60d4

Browse files
committed
fix(d-link): invalid to prop binding DesignRevision#4
1 parent e4ba771 commit 70d60d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/link/Link.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
:rel="computedRel"
44
:href="computedHref"
55
:target="target"
6+
:to="to"
67
:tabindex="computedTabindex"
78
:class="[
89
active ? (exact ? exactActiveClass : activeClass) : '',
@@ -93,7 +94,7 @@ export default {
9394
computedTag() {
9495
return this.to
9596
&& !this.disabled
96-
&& Boolean(this.$parent.router) ? 'router-link' : 'a'
97+
&& Boolean(this.$parent.$router) ? 'router-link' : 'a'
9798
},
9899
computedRel() {
99100
return this.target === '_blank'

0 commit comments

Comments
 (0)