support ssr

This commit is contained in:
Rafi
2023-04-03 18:19:39 +08:00
parent deb627a9ab
commit 5b9d52b177
10 changed files with 975 additions and 1223 deletions

View File

@@ -107,6 +107,8 @@ watchEffect(() => {
}
})
const user = useUser()
onMounted(async () => {
loadConversations()
loadSettings()
@@ -125,11 +127,12 @@ onMounted(async () => {
>
<template
v-slot:prepend
v-if="user"
>
<v-list>
<v-list-item
:title="$auth.user.username"
:subtitle="$auth.user.email"
:title="user.username"
:subtitle="user.email"
>
<template v-slot:prepend>
<v-icon