fix(web): unwrap breadcrumb value for page title by using unref

This commit is contained in:
ShellWen
2026-02-23 05:34:33 +08:00
committed by 晨苒
parent cad684355e
commit 3a4f463dcc
@@ -62,7 +62,7 @@ import {
ScrollArea,
} from '@memoh/ui'
import { useRoute } from 'vue-router'
import { computed } from 'vue'
import { computed, unref } from 'vue'
const route = useRoute()
@@ -80,7 +80,7 @@ const curBreadcrumb = computed(() => {
const currentPageTitle = computed(() => {
const last = curBreadcrumb.value[curBreadcrumb.value.length - 1]
const title = String(last?.breadcrumb?.value ?? '').trim()
const title = String(unref(last?.breadcrumb) ?? '').trim()
return title || 'Memoh'
})