mirror of
https://github.com/dataease/dataease.git
synced 2026-05-17 06:50:45 +08:00
fix(移动端): 水印设置为15px,安卓设备水印显示正常,ios 设备的水印显示过小
This commit is contained in:
@@ -3,6 +3,8 @@ import { storeToRefs } from 'pinia'
|
||||
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
||||
import { ref } from 'vue'
|
||||
import { ipInfoApi } from '@/api/user'
|
||||
import { isISOMobile } from '@/utils/utils'
|
||||
|
||||
const dvMainStore = dvMainStoreWithOut()
|
||||
|
||||
const { dvInfo } = storeToRefs(dvMainStore)
|
||||
@@ -233,7 +235,7 @@ export function activeWatermark(
|
||||
watermark_color: watermarkForm.watermark_color,
|
||||
watermark_x_space: watermarkForm.watermark_x_space * scale,
|
||||
watermark_y_space: watermarkForm.watermark_y_space * scale,
|
||||
watermark_fontsize: watermarkForm.watermark_fontsize * scale + 'px'
|
||||
watermark_fontsize: watermarkForm.watermark_fontsize * scale * (isISOMobile() ? 2.5 : 1) + 'px'
|
||||
}
|
||||
watermark(settings, domId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user