Skip to content

Commit 8e6c0bd

Browse files
committed
fix: restore missing site information (#19)
1 parent 4329d5b commit 8e6c0bd

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
<script setup lang="ts">
2+
/**
3+
* Synchronized with:
4+
* https://github.com/YunYouJun/valaxy/blob/main/packages/valaxy/client/components/ValaxyApp.vue
5+
*/
6+
7+
import { useLayout, useValaxyApp } from 'valaxy'
28
// @ts-expect-error virtual module
39
import ValaxyUserApp from '/@valaxyjs/UserAppVue'
10+
11+
const layout = useLayout()
12+
13+
if (layout.value !== 'empty') {
14+
useValaxyApp()
15+
}
416
</script>
517

618
<template>
7-
<ValaxyThemeApp />
8-
<ValaxyAddons />
9-
<ValaxyUserApp />
19+
<template v-if="layout !== 'empty'">
20+
<ValaxyThemeApp />
21+
<ValaxyAddons />
22+
<ValaxyUserApp />
23+
</template>
1024
</template>

0 commit comments

Comments
 (0)