mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-01 01:21:04 +08:00
chore: add helper to clear vditor cache
This commit is contained in:
7
frontend/src/utils/clearVditorStorage.js
Normal file
7
frontend/src/utils/clearVditorStorage.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export function clearVditorStorage() {
|
||||
Object.keys(localStorage).forEach(key => {
|
||||
if (key.startsWith('vditoreditor-') || key === 'vditor') {
|
||||
localStorage.removeItem(key)
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user