feat: 音乐管理功能优化
This commit is contained in:
@@ -4,10 +4,19 @@ const imageDbStore = localforage.createInstance({
|
||||
name: 'imgStore',
|
||||
})
|
||||
|
||||
const audioDbStore = localforage.createInstance({
|
||||
name: 'audioStore',
|
||||
})
|
||||
|
||||
async function clearImageDbStore() {
|
||||
await imageDbStore.clear()
|
||||
}
|
||||
|
||||
async function clearAudioDbStore() {
|
||||
await audioDbStore.clear()
|
||||
}
|
||||
|
||||
export function clearAllDbStore() {
|
||||
clearImageDbStore()
|
||||
clearAudioDbStore()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user