(id: number | null)
| 39 | |
| 40 | // 保存清除标记到 localStorage |
| 41 | function saveClearedLogIdToStorage(id: number | null): void { |
| 42 | if (id === null) { |
| 43 | localStorage.removeItem(CLEARED_LOG_ID_KEY) |
| 44 | } else { |
| 45 | localStorage.setItem(CLEARED_LOG_ID_KEY, id.toString()) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | const defaultConfig: CrawlerConfig = { |
| 50 | platform: 'bili', |