Skip to content
代码片段 群组 项目
提交 93d758e9 编辑于 作者: Hunlongyu's avatar Hunlongyu
浏览文件

添加数据库

上级 fb2cf493
No related branches found
No related tags found
无相关合并请求
......@@ -10,6 +10,7 @@
},
"dependencies": {
"core-js": "^3.6.5",
"dexie": "^3.0.3",
"kpc-vue": "^1.4.7",
"register-service-worker": "^1.7.1",
"vue": "^2.6.11",
......
......@@ -64,16 +64,7 @@ export default {
cssFullscreen: true,
defaultPlaybackRate: 1,
playbackRate: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 3, 4, 5],
playPrev: true,
playNextOne: true,
videoStop: true,
showList: true,
showHistory: true,
quitMiniMode: true,
videoTitle: true,
airplay: true,
closeVideoTouch: true,
ignores: ['cssFullscreen']
airplay: false
}
}
},
......
import Dexie from 'dexie'
const db = new Dexie('ZYPlayerWeb')
db.version(1).stores({
setting: 'id, theme, volume',
star: '++id, name, url',
history: '++id, name, url'
})
db.open()
const { history } = db
export default history {}
根据相关法律政策,该内容无法显示。如需申诉,请点击此处
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册