valaxy-theme-yun 0.14.8 → 0.14.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/layouts/home.vue +8 -2
- package/package.json +2 -2
- package/setup/main.ts +5 -0
package/layouts/home.vue
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
<script lang="ts" setup>
|
2
2
|
import { useAppStore, useLayout } from 'valaxy'
|
3
|
+
import { useRoute } from 'vue-router'
|
3
4
|
import { useThemeConfig } from '../composables'
|
4
5
|
|
5
6
|
const app = useAppStore()
|
6
7
|
const isHome = useLayout('home')
|
7
8
|
const themeConfig = useThemeConfig()
|
9
|
+
|
10
|
+
const route = useRoute()
|
8
11
|
</script>
|
9
12
|
|
10
13
|
<template>
|
@@ -15,8 +18,11 @@ const themeConfig = useThemeConfig()
|
|
15
18
|
</slot>
|
16
19
|
</ValaxySidebar>
|
17
20
|
|
18
|
-
<
|
19
|
-
|
21
|
+
<template v-if="!route.path.startsWith('/page')">
|
22
|
+
<YunBanner v-if="themeConfig.banner.enable" />
|
23
|
+
<YunSay v-if="themeConfig.say.enable" w="full" />
|
24
|
+
</template>
|
25
|
+
|
20
26
|
<YunNotice
|
21
27
|
v-if="themeConfig.notice.enable"
|
22
28
|
:content="themeConfig.notice.content" mt="4"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
|
-
"version": "0.14.
|
3
|
+
"version": "0.14.9",
|
4
4
|
"author": {
|
5
5
|
"email": "me@yunyoujun.cn",
|
6
6
|
"name": "YunYouJun",
|
@@ -22,6 +22,6 @@
|
|
22
22
|
"valaxy-addon-waline": "0.0.9"
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
|
-
"valaxy": "0.14.
|
25
|
+
"valaxy": "0.14.9"
|
26
26
|
}
|
27
27
|
}
|