feat: create by site
This commit is contained in:
+3
-3
@@ -13,9 +13,9 @@ const store = reactive({
|
||||
await store.category.fetchBySiteId()
|
||||
|
||||
const { data } = await useAsyncData('index', () => store.dynamicPage.fetchPageByCode(route.path === '/' ? 'trang-chu' : route.path.replace('/', '')))
|
||||
const asycnCurrentPage = data.value.currentPage;
|
||||
const asycnSectionPublished = data.value.sectionPublished;
|
||||
const asycnComponentPublished = data.value.componentPublished;
|
||||
const asycnCurrentPage = data.value && data.value.currentPage;
|
||||
const asycnSectionPublished = data.value && data.value.sectionPublished;
|
||||
const asycnComponentPublished = data.value && data.value.componentPublished;
|
||||
|
||||
useHead({
|
||||
title: () => 'Trang chủ',
|
||||
|
||||
Reference in New Issue
Block a user