(origin: string)
| 47 | }, |
| 48 | |
| 49 | localRemove(origin: string) { |
| 50 | const key = buildKey(origin); |
| 51 | const result = localStorage.getItem(key); |
| 52 | localStorage.removeItem(key); |
| 53 | if (result) { |
| 54 | localStorage.removeItem(buildKey(result)); |
| 55 | } |
| 56 | }, |
| 57 | |
| 58 | // 24h 清理一次缓存(每次页面打开即 main.js 时都应该调用) |
| 59 | cleaner() { |
nothing calls this directly
no test coverage detected