Unverified Commit 9f592c04 authored by Zoey Zhao's avatar Zoey Zhao Committed by GitHub

fix: reactive header in user page (#147)

parent 5df34b51
...@@ -6,7 +6,7 @@ const result = await fetchUser(id.value) ...@@ -6,7 +6,7 @@ const result = await fetchUser(id.value)
const { data: user, loading } = toRefs(result) const { data: user, loading } = toRefs(result)
useHead({ useHead({
title: loading.value title: () => loading.value
? 'Loading' ? 'Loading'
: user.value : user.value
? user.value.id ? user.value.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment