diff --git a/src/platforms/app-plus/service/api/storage/storage.js b/src/platforms/app-plus/service/api/storage/storage.js index b7e9b1590e130980d3499c30996b9de478356ead..e3e2fd7a9e6e75a5b6087a81110f7e08168ccfdd 100644 --- a/src/platforms/app-plus/service/api/storage/storage.js +++ b/src/platforms/app-plus/service/api/storage/storage.js @@ -185,7 +185,7 @@ export function getStorageInfo () { let currentSize = 0 for (let index = 0; index < length; index++) { const key = plus.storage.key(index) - if (key !== STORAGE_KEYS && key.indexOf(STORAGE_DATA_TYPE) + STORAGE_DATA_TYPE.length !== key.length) { + if (key !== STORAGE_KEYS && (key.indexOf(STORAGE_DATA_TYPE) < 0 || key.indexOf(STORAGE_DATA_TYPE) + STORAGE_DATA_TYPE.length !== key.length)) { const value = plus.storage.getItem(key) currentSize += key.length + value.length keys.push(key)