Skip to content

Commit 0e5746b

Browse files
committed
CVEREcord testing
1 parent 26e1ed9 commit 0e5746b

2 files changed

Lines changed: 343 additions & 299 deletions

File tree

src/router/index.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,11 @@ const router = createRouter({
5252
return new Promise((resolve) => {
5353
setTimeout(() => {
5454
if (to.hash) {
55-
resolve({
56-
el: to.hash,
57-
top: 55,
58-
behavior: "instant"
59-
});
55+
return resolve({el: to.hash, top: 55, behavior: 'auto'});
6056
}
61-
resolve({
62-
top: 0
63-
});
64-
}, 0)
65-
66-
})
67-
68-
57+
resolve({top: 0});
58+
}, 0);
59+
});
6960
},
7061
routes: [
7162
{

0 commit comments

Comments
 (0)