(origin: string)
| 40 | }, |
| 41 | |
| 42 | localGet(origin: string) { |
| 43 | // 如果禁用缓存,则始终返回 null |
| 44 | if (!config.useCache) return null; |
| 45 | |
| 46 | return localStorage.getItem(buildKey(origin)); |
| 47 | }, |
| 48 | |
| 49 | localRemove(origin: string) { |
| 50 | const key = buildKey(origin); |
nothing calls this directly
no test coverage detected