Fix undefined user page title (#7436)

This commit is contained in:
Zero King 2021-04-12 14:07:12 +00:00 committed by GitHub
parent 7a61d401cc
commit 5e81920585

View file

@ -271,6 +271,7 @@ export default defineComponent({
data() {
return {
[symbols.PAGE_INFO]: computed(() => this.user ? {
title: this.user.name ? `${this.user.name} (@${this.user.username})` : `@${this.user.username}`,
userName: this.user,
avatar: this.user,
path: `/@${this.user.username}`,