thainv: ghép navigation

This commit is contained in:
nguyen van thai
2024-06-17 11:48:00 +07:00
parent c2b9208746
commit 3c75c89a8b
30 changed files with 856 additions and 108 deletions
@@ -1,8 +1,9 @@
<script lang="ts" setup>
import { CurrentDateTime, LangSwitcher, TopNavigation, Mega } from "./index";
import AssignComponent from "~/components/dynamic-page/page-component/AssignComponent.vue";
const widgetsStore = useWidgetsStore();
const layoutstore = useLayoutStore();
import { enumPageComponentTemplates, enumPageComponentLayouts } from "@/definitions/enum";
const { weather } = storeToRefs(widgetsStore);
const { megaMenuActive } = storeToRefs(layoutstore);
@@ -87,7 +88,9 @@ onUnmounted(() => {
</div>
</div>
</header>
<TopNavigation />
<div class="top-navigation">
<AssignComponent :type="enumPageComponentLayouts[enumPageComponentTemplates.NAVIGATION]['NAVIGATION-TOP']" />
</div>
<Teleport to="body">
<Mega />