|
|
|
@ -151,8 +151,8 @@ export const useEmailList = (mailboxDirNode) => {
|
|
|
|
|
|
|
|
|
|
const cacheKey = isEmpty(COLI_SN) ? `dir-${VKey}` : `order-${VKey}`
|
|
|
|
|
const readCacheIDList = await readIndexDB(cacheKey, 'maillist', 'mailbox')
|
|
|
|
|
const readCacheListRowsMap = await readIndexDB(readCacheIDList.data, 'listrow', 'mailbox')
|
|
|
|
|
if (!isEmpty(readCacheIDList)) {
|
|
|
|
|
const readCacheListRowsMap = await readIndexDB(readCacheIDList.data, 'listrow', 'mailbox')
|
|
|
|
|
const _x = readCacheIDList.data.map((ele) => readCacheListRowsMap.get(ele).data || {})
|
|
|
|
|
setMailList(_x)
|
|
|
|
|
setLoading(false)
|
|
|
|
|