export const anchorPrevent = {
bind: function (el) {
el.childNodes[0].addEventListener(
'click',
function (e) {
e.preventDefault();
e.stopPropagation();
},
false
);
}
};
<a-anchor-link
v-for="item in anchorLinkList"
:key="item.href"
:href="item.href"
:title="item.title"
v-anchorPrevent />
</a-anchor>
directives: {
anchorPrevent
}