mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-21 23:16:48 +00:00
封装isBroswer()
This commit is contained in:
@@ -38,6 +38,7 @@ async function getPageWithRetry(id, from, retryAttempts = 3) {
|
||||
console.info('[响应成功]:', `from:${from}`, `id:${id}`)
|
||||
return pageData
|
||||
} catch (e) {
|
||||
console.warn('[响应异常]:', e)
|
||||
await delay(1000)
|
||||
const cacheKey = 'page_block_' + id
|
||||
const pageBlock = await getDataFromCache(cacheKey)
|
||||
|
||||
Reference in New Issue
Block a user