File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const antdLocale = computed(() => {
19
19
20
20
const watermarkProps = computed (() => {
21
21
const props: WatermarkProps = {
22
- content: themeStore .watermark .text ,
22
+ content: themeStore .watermark ? .text || ' SoybeanAdmin ' ,
23
23
width: 120 ,
24
24
height: 120 ,
25
25
font: {
@@ -39,7 +39,7 @@ const watermarkProps = computed(() => {
39
39
<AppProvider >
40
40
<RouterView class =" bg-layout" />
41
41
<AWatermark
42
- v-if =" themeStore.watermark.visible"
42
+ v-if =" themeStore.watermark? .visible"
43
43
v-bind =" watermarkProps"
44
44
class =" pointer-events-none absolute-lt! size-full"
45
45
/>
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ declare namespace App {
96
96
right : boolean ;
97
97
} ;
98
98
/** Watermark */
99
- watermark : {
99
+ watermark ? : {
100
100
/** Whether to show the watermark */
101
101
visible : boolean ;
102
102
/** Watermark text */
You can’t perform that action at this time.
0 commit comments