diff --git a/ui/artalk-sidebar/src/App.vue b/ui/artalk-sidebar/src/App.vue index dc696fcb3..85cc885f5 100644 --- a/ui/artalk-sidebar/src/App.vue +++ b/ui/artalk-sidebar/src/App.vue @@ -35,7 +35,7 @@ function syncArtalk(artalk: Artalk) { } else { // sync user from artalk to sidebar try { - useUserStore().sync(artalk) + useUserStore().sync() } catch { nextTick(() => { router.replace('/login') @@ -53,7 +53,6 @@ function syncArtalk(artalk: Artalk) { name: artalkUserData.nick }).then(res => { if (res.data.is_admin && !res.data.is_login) { - artalkUser.logout() user.logout() nextTick(() => { router.replace('/login') diff --git a/ui/artalk-sidebar/src/components/Header.vue b/ui/artalk-sidebar/src/components/Header.vue index bc20ac19a..82609b912 100644 --- a/ui/artalk-sidebar/src/components/Header.vue +++ b/ui/artalk-sidebar/src/components/Header.vue @@ -26,7 +26,7 @@ const userAvatarImgURL = computed(() => { :class="{ 'active': nav.siteSwitcherShow }" @click="nav.showSiteSwitcher()" > -
{{ curtSite.substring(0, 1) }}
+
{{ curtSite.substring(0, 1) || '_' }}