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) !== '_'