From de48d7f933ee64170e10ae0764ee1951b47e8fc7 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Sat, 4 Jan 2025 11:26:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E5=B0=81=E8=A3=85=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=98=AF=E5=90=A6=E4=B8=BA=E7=A9=BA=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/cashe.js | 1 + 1 file changed, 1 insertion(+) diff --git a/store/cashe.js b/store/cashe.js index fae0b32..c215605 100644 --- a/store/cashe.js +++ b/store/cashe.js @@ -19,6 +19,7 @@ class CACHE { throw (new Error('请传入缓存name值:index | {name:index}')) return } + this._isEmpty=Object.keys(data).length>=2?false:true; for (let i in data) { this[i] = data[i] const canWrite = i.slice(0, 1) !== '_'