Split desktop and mobile layouts with shared page data so APIs fetch once per context.
Add layout shells, desktop views, module-level page caches, and UI fixes for auth, home, wallet, transactions, address, and related pages. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div class="mt-10 p-5">
|
||||
<component :is="layoutComponent" :layout-config="layoutConfig" />
|
||||
<AppHeader @logout="$emit('logout')" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue'
|
||||
import AppHeader from '../components/AppHeader.vue'
|
||||
import {
|
||||
getHomeLayoutConfig,
|
||||
getHomeLayoutId,
|
||||
resolveHomeLayoutComponent,
|
||||
} from '../layouts/registry'
|
||||
|
||||
defineEmits<{
|
||||
logout: []
|
||||
}>()
|
||||
|
||||
const layoutComponent = computed(() => resolveHomeLayoutComponent())
|
||||
const layoutConfig = computed(() => getHomeLayoutConfig(getHomeLayoutId()))
|
||||
</script>
|
||||
Reference in New Issue
Block a user