Skip to content

Commit

Permalink
fix: hard-coded key on clearLocalCache
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjunyu19 committed Feb 9, 2024
1 parent 2fb6325 commit 1b4e2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GZCTF/ClientApp/src/utils/useConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const localCacheProvider = () => {

export const clearLocalCache = () => {
window.removeEventListener('beforeunload', saveCache, true)
localStorage.removeItem('gzctf-cache')
localStorage.removeItem(cacheKey)
cacheMap.clear()
window.location.reload()
}

0 comments on commit 1b4e2c3

Please sign in to comment.