Skip to content

Commit 1075712

Browse files
authored
Merge pull request #589 from Tencent/fix/anchor/parmas
fix: anchor click parmas
2 parents 05b17b6 + 9c27189 commit 1075712

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/anchor/anchor-item.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,11 @@ export default defineComponent({
5454
handleClick(e: MouseEvent): void {
5555
const { href, tAnchor, title } = this;
5656
tAnchor.handleScrollTo(href);
57-
tAnchor.handleLinkClick(
58-
{
59-
href,
60-
title: typeof title === 'string' ? title : undefined,
61-
},
57+
tAnchor.handleLinkClick({
58+
href,
59+
title: typeof title === 'string' ? title : undefined,
6260
e,
63-
);
61+
});
6462
},
6563
renderTitle() {
6664
const { title, $slots } = this;

0 commit comments

Comments
 (0)