From 09ac24ad44db3aa1539c563b9172c0a92b74a9a0 Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Thu, 15 Sep 2022 09:03:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E4=B8=8A=E9=99=90=E4=B8=BA800=E6=9D=A1=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=A4=A7=E5=9B=BE=E7=89=87=E5=88=A4=E5=AE=9A=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/preload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/preload.js b/public/preload.js index d04a6e0..bf4d826 100644 --- a/public/preload.js +++ b/public/preload.js @@ -75,7 +75,7 @@ class DB { addItem(cItem) { this.dataBase.data.unshift(cItem) this.updateDataBase() - const exceedCount = this.dataBase.data.length - '\u0035\u0030\u0030' + const exceedCount = this.dataBase.data.length - '\u0038\u0030\u0030' if (exceedCount > 0) { // 达到条数限制 在收藏条数限制内遍历非收藏历史并删除 // 所有被移除的 item都存入tempList @@ -139,7 +139,7 @@ const pbpaste = () => { // image const image = clipboard.readImage() // 大图卡顿来源 const data = image.toDataURL() - globalImageOversize = data.length > 4e5 + globalImageOversize = data.length > 3e5 if (!image.isEmpty()) { return { type: 'image',