mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-08 22:54:09 +08:00
feat: 调整记录上限为800条 调整大图片判定大小
This commit is contained in:
parent
7ccb7be106
commit
09ac24ad44
@ -75,7 +75,7 @@ class DB {
|
|||||||
addItem(cItem) {
|
addItem(cItem) {
|
||||||
this.dataBase.data.unshift(cItem)
|
this.dataBase.data.unshift(cItem)
|
||||||
this.updateDataBase()
|
this.updateDataBase()
|
||||||
const exceedCount = this.dataBase.data.length - '\u0035\u0030\u0030'
|
const exceedCount = this.dataBase.data.length - '\u0038\u0030\u0030'
|
||||||
if (exceedCount > 0) {
|
if (exceedCount > 0) {
|
||||||
// 达到条数限制 在收藏条数限制内遍历非收藏历史并删除
|
// 达到条数限制 在收藏条数限制内遍历非收藏历史并删除
|
||||||
// 所有被移除的 item都存入tempList
|
// 所有被移除的 item都存入tempList
|
||||||
@ -139,7 +139,7 @@ const pbpaste = () => {
|
|||||||
// image
|
// image
|
||||||
const image = clipboard.readImage() // 大图卡顿来源
|
const image = clipboard.readImage() // 大图卡顿来源
|
||||||
const data = image.toDataURL()
|
const data = image.toDataURL()
|
||||||
globalImageOversize = data.length > 4e5
|
globalImageOversize = data.length > 3e5
|
||||||
if (!image.isEmpty()) {
|
if (!image.isEmpty()) {
|
||||||
return {
|
return {
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user