mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Add note
This commit is contained in:
parent
36368f5fd4
commit
640feba309
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,9 @@ export const router = new VueRouter({
|
||||||
{ path: '/authorize-follow', component: () => import('./pages/follow.vue').then(m => m.default) },
|
{ path: '/authorize-follow', component: () => import('./pages/follow.vue').then(m => m.default) },
|
||||||
/*{ path: '*', component: MkNotFound }*/
|
/*{ path: '*', component: MkNotFound }*/
|
||||||
],
|
],
|
||||||
// なんかバギー
|
// なんかHacky
|
||||||
|
// 通常の使い方をすると scroll メソッドの behavior を設定できないため、自前で window.scroll するようにする
|
||||||
|
// setTimeout しないと、アニメーション(トランジション)の関係でうまく動かない
|
||||||
scrollBehavior(to, from, savedPosition) {
|
scrollBehavior(to, from, savedPosition) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (savedPosition) {
|
if (savedPosition) {
|
||||||
|
|
Loading…
Reference in a new issue