refactor: 调整首页数据获取API

- 将首页的数据获取由REST重构为GraphQL
This commit is contained in:
2025-11-11 16:14:58 +08:00
parent a93f508e85
commit ac658e01ae
4 changed files with 40 additions and 47 deletions

View File

@ -16,7 +16,7 @@
const { data, pending, error } = await useHomepage();
const homepageData = computed(() => {
return toHomepageView(data.value);
return toHomepageView(data.value.homepage);
});
const pageTilte = $t('page-title.homepage');