Files
OpenIsle/frontend/src/utils/clearVditorStorage.js
2025-08-03 17:33:48 +08:00

8 lines
195 B
JavaScript

export function clearVditorStorage() {
Object.keys(localStorage).forEach(key => {
if (key.startsWith('vditoreditor-') || key === 'vditor') {
localStorage.removeItem(key)
}
})
}