mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-11-30 16:16:37 +08:00
添加删除功能
This commit is contained in:
@@ -11,7 +11,7 @@ db.version(3).stores({
|
||||
sites: '++id, key, name, json, xml, down, level',
|
||||
history: '++id, site, ids, name, type, year, index, time',
|
||||
mini: 'id, site, ids, name, index, time',
|
||||
iptv: 'name, site'
|
||||
iptv: '++id, name, site'
|
||||
})
|
||||
|
||||
db.on('populate', () => {
|
||||
|
||||
@@ -12,5 +12,11 @@ export default {
|
||||
},
|
||||
async find (doc) {
|
||||
return await iptv.get(doc)
|
||||
},
|
||||
async update (id, docs) {
|
||||
return await iptv.update(id, docs)
|
||||
},
|
||||
async remove (id) {
|
||||
return await iptv.delete(id)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user