Skip to content

Commit

Permalink
fix(projects): fix watermark settings
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Sep 8, 2024
1 parent e476b66 commit dbe8ec6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const antdLocale = computed(() => {
const watermarkProps = computed(() => {
const props: WatermarkProps = {
content: themeStore.watermark.text,
content: themeStore.watermark?.text || 'SoybeanAdmin',
width: 120,
height: 120,
font: {
Expand All @@ -39,7 +39,7 @@ const watermarkProps = computed(() => {
<AppProvider>
<RouterView class="bg-layout" />
<AWatermark
v-if="themeStore.watermark.visible"
v-if="themeStore.watermark?.visible"
v-bind="watermarkProps"
class="pointer-events-none absolute-lt! size-full"
/>
Expand Down
2 changes: 1 addition & 1 deletion src/typings/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ declare namespace App {
right: boolean;
};
/** Watermark */
watermark: {
watermark?: {
/** Whether to show the watermark */
visible: boolean;
/** Watermark text */
Expand Down

0 comments on commit dbe8ec6

Please sign in to comment.