Skip to content

Commit 9b0c087

Browse files
committed
Fix v-link href value
The href value is correct before this release. Every named route is `#{name}` now. Remove this useless code.
1 parent 60421bb commit 9b0c087

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/directives/link.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ export default function (Vue) {
128128
if (this.el.tagName !== 'A') {
129129
return
130130
}
131-
if (this.target && this.target.name) {
132-
this.el.href = '#' + this.target.name
133-
return
134-
}
135131
const path = this.path
136132
const router = this.router
137133
const isAbsolute = path.charAt(0) === '/'

0 commit comments

Comments
 (0)