Skip to content

Commit dbe8ec6

Browse files
committed
fix(projects): fix watermark settings
1 parent e476b66 commit dbe8ec6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const antdLocale = computed(() => {
1919
2020
const watermarkProps = computed(() => {
2121
const props: WatermarkProps = {
22-
content: themeStore.watermark.text,
22+
content: themeStore.watermark?.text || 'SoybeanAdmin',
2323
width: 120,
2424
height: 120,
2525
font: {
@@ -39,7 +39,7 @@ const watermarkProps = computed(() => {
3939
<AppProvider>
4040
<RouterView class="bg-layout" />
4141
<AWatermark
42-
v-if="themeStore.watermark.visible"
42+
v-if="themeStore.watermark?.visible"
4343
v-bind="watermarkProps"
4444
class="pointer-events-none absolute-lt! size-full"
4545
/>

src/typings/app.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ declare namespace App {
9696
right: boolean;
9797
};
9898
/** Watermark */
99-
watermark: {
99+
watermark?: {
100100
/** Whether to show the watermark */
101101
visible: boolean;
102102
/** Watermark text */

0 commit comments

Comments
 (0)