We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4329d5b commit 8e6c0bdCopy full SHA for 8e6c0bd
1 file changed
theme/components/core/ValaxyApp.vue
@@ -1,10 +1,24 @@
1
<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'
8
// @ts-expect-error virtual module
9
import ValaxyUserApp from '/@valaxyjs/UserAppVue'
10
11
+const layout = useLayout()
12
13
+if (layout.value !== 'empty') {
14
+ useValaxyApp()
15
+}
16
</script>
17
18
<template>
- <ValaxyThemeApp />
- <ValaxyAddons />
- <ValaxyUserApp />
19
+ <template v-if="layout !== 'empty'">
20
+ <ValaxyThemeApp />
21
+ <ValaxyAddons />
22
+ <ValaxyUserApp />
23
+ </template>
24
</template>
0 commit comments