Fix bug
This commit is contained in:
parent
2560d3d1c1
commit
48d540e9f4
|
@ -10,6 +10,6 @@ Vue.filter('userName', user => {
|
||||||
return getUserName(user);
|
return getUserName(user);
|
||||||
});
|
});
|
||||||
|
|
||||||
Vue.filter('userPage', user => {
|
Vue.filter('userPage', (user, path?) => {
|
||||||
return '/@' + Vue.filter('acct')(user);
|
return '/@' + Vue.filter('acct')(user) + (path ? '/' + path : '');
|
||||||
});
|
});
|
||||||
|
|
|
@ -57,7 +57,7 @@ init(async (launch) => {
|
||||||
{ path: '/othello', component: MkOthello },
|
{ path: '/othello', component: MkOthello },
|
||||||
{ path: '/othello/:game', component: MkOthello },
|
{ path: '/othello/:game', component: MkOthello },
|
||||||
{ path: '/@:user', component: MkUser },
|
{ path: '/@:user', component: MkUser },
|
||||||
{ path: '/@:user/:note', component: MkNote }
|
{ path: '/notes/:note', component: MkNote }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ init((launch) => {
|
||||||
{ path: '/@:user', component: MkUser },
|
{ path: '/@:user', component: MkUser },
|
||||||
{ path: '/@:user/followers', component: MkFollowers },
|
{ path: '/@:user/followers', component: MkFollowers },
|
||||||
{ path: '/@:user/following', component: MkFollowing },
|
{ path: '/@:user/following', component: MkFollowing },
|
||||||
{ path: '/@:user/:note', component: MkNote }
|
{ path: '/notes/:note', component: MkNote }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -30,11 +30,11 @@
|
||||||
<b>{{ user.notesCount | number }}</b>
|
<b>{{ user.notesCount | number }}</b>
|
||||||
<i>%i18n:mobile.tags.mk-user.notes%</i>
|
<i>%i18n:mobile.tags.mk-user.notes%</i>
|
||||||
</a>
|
</a>
|
||||||
<a :href="`${user | userPage}/following`">
|
<a :href="user | userPage('following')">
|
||||||
<b>{{ user.followingCount | number }}</b>
|
<b>{{ user.followingCount | number }}</b>
|
||||||
<i>%i18n:mobile.tags.mk-user.following%</i>
|
<i>%i18n:mobile.tags.mk-user.following%</i>
|
||||||
</a>
|
</a>
|
||||||
<a :href="`${user | userPage}/followers`">
|
<a :href="user | userPage('followers')">
|
||||||
<b>{{ user.followersCount | number }}</b>
|
<b>{{ user.followersCount | number }}</b>
|
||||||
<i>%i18n:mobile.tags.mk-user.followers%</i>
|
<i>%i18n:mobile.tags.mk-user.followers%</i>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue