mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-11-26 22:22:10 +08:00
🍤 小窗口模式基本完成, 顺便修复了一个bug
This commit is contained in:
@@ -11,7 +11,8 @@ db.version(1).stores({
|
||||
db.version(2).stores({
|
||||
setting: 'id, theme, site, language, cloud, cloudKey',
|
||||
video: '++id, site, name, type, time, detail, index',
|
||||
history: '++id, site, name, type, time, detail, index, currentTime'
|
||||
history: '++id, site, name, type, time, detail, index, currentTime',
|
||||
mini: 'id, site, name, type, time, detail, index, currentTime'
|
||||
})
|
||||
|
||||
const initData = [{
|
||||
|
||||
13
src/lib/dexie/mini.js
Normal file
13
src/lib/dexie/mini.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import db from './index'
|
||||
const { mini } = db
|
||||
export default {
|
||||
async add (doc) {
|
||||
return await mini.add(doc)
|
||||
},
|
||||
async find () {
|
||||
return await mini.get({ id: 0 })
|
||||
},
|
||||
async update (docs) {
|
||||
return await mini.update(0, docs)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user