Skip to content

Commit

Permalink
Merge pull request #871 from zhensherlock/dev
Browse files Browse the repository at this point in the history
docs: update docs
  • Loading branch information
zhensherlock authored Sep 4, 2024
2 parents c9fbfee + b19c00e commit 2eeee2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/.vitepress/stores/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineStore } from 'pinia'
import { isUndefined } from 'lodash'
import _ from 'lodash'
import { Watermark, BlindWatermark } from '../../../src';
import type { WatermarkOptions, ChangeOptionsMode } from '../../../src/types'

Expand All @@ -15,7 +15,7 @@ const useAppStore = defineStore('app', {
if (this.watermark) {
this.watermark.destroy()
}
if (isUndefined(args.monitorProtection)) {
if (_.isUndefined(args.monitorProtection)) {
args.monitorProtection = true
}
this.watermark = mode === 'default' ? new Watermark(args) : new BlindWatermark(args)
Expand All @@ -25,7 +25,7 @@ const useAppStore = defineStore('app', {
if (!this.watermark) {
return
}
if (isUndefined(args.monitorProtection)) {
if (_.isUndefined(args.monitorProtection)) {
args.monitorProtection = true
}
this.watermark.changeOptions(args, mode, redraw)
Expand Down

0 comments on commit 2eeee2b

Please sign in to comment.