添加删除功能

This commit is contained in:
haiyangcui
2020-09-05 13:42:03 +02:00
parent 6632318cf6
commit ca53a22598
3 changed files with 15 additions and 26 deletions

View File

@@ -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', () => {

View File

@@ -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)
}
}