fix: return when no uid while init cache
This commit is contained in:
Vendored
+2
@@ -53,6 +53,8 @@ const tables = [
|
||||
];
|
||||
const initCache = () => {
|
||||
const uid = localStorage.getItem(KEY_UID) || "";
|
||||
// 没有uid,就没有本地缓存
|
||||
if (!uid) return;
|
||||
const name = `local_db_${uid}_v_${CACHE_VERSION.split(".").join("_")}`;
|
||||
window.CACHE = {};
|
||||
tables.forEach(({ storeName, description }) => {
|
||||
|
||||
Reference in New Issue
Block a user