Skip to content

Commit 7fe6908

Browse files
authored
🐛 fix watermark switching errors. (#61)
* fix(projects): 🐛 fix watermark switching errors. * fix(projects): 🐛 add watermark container h-full
1 parent 2ab9737 commit 7fe6908

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/App.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const locale = computed(() => {
1616
1717
const watermarkProps = computed<WatermarkProps>(() => {
1818
return {
19-
content: themeStore.watermark.text || 'SoybeanAdmin',
19+
content: themeStore.watermark.visible ? themeStore.watermark.text || 'SoybeanAdmin' : '',
2020
cross: true,
2121
fontSize: 16,
2222
lineHeight: 16,
@@ -30,10 +30,9 @@ const watermarkProps = computed<WatermarkProps>(() => {
3030
<template>
3131
<ElConfigProvider :locale="locale">
3232
<AppProvider>
33-
<ElWatermark v-if="themeStore.watermark.visible" v-bind="watermarkProps">
33+
<ElWatermark class="h-full" v-bind="watermarkProps">
3434
<RouterView class="bg-layout" />
3535
</ElWatermark>
36-
<RouterView v-else class="bg-layout" />
3736
</AppProvider>
3837
</ElConfigProvider>
3938
</template>

0 commit comments

Comments
 (0)