Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 382b4bb

Browse files
authored
Update share-network.js (#264)
avoid page reload on share clicked, if the Vue router in `history` mode
1 parent e39fd9b commit 382b4bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/share-network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export default {
187187
}
188188
}
189189

190-
if (this.tag === 'a') node.attrs = { href: '#' }
190+
if (this.tag === 'a') node.attrs = { href: 'javascript:void(0)' }
191191

192192
return createElement(this.tag, node, this.$slots.default)
193193
},

0 commit comments

Comments
 (0)