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)
const { data: user, loading } = toRefs(result)
useHead({
title: loading.value
title: () => loading.value
? 'Loading'
: user.value
? 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