统一star数据格式的定义

This commit is contained in:
haiyangcui
2020-10-23 23:31:01 +02:00
parent ffbffde74f
commit 455f5dae84
4 changed files with 12 additions and 6 deletions

View File

@@ -181,11 +181,13 @@ export default {
const docs = {
key: this.detail.key,
ids: this.info.id,
site: this.detail.site,
name: this.info.name,
type: this.info.type,
year: this.info.year,
last: this.info.last,
note: this.info.note
note: this.info.note,
last: this.info.last
}
star.add(docs).then(res => {
this.$message.success('收藏成功')

View File

@@ -332,6 +332,7 @@ export default {
const docs = {
key: site.key,
ids: e.id,
site: site,
name: e.name,
type: e.type,
year: e.year,

View File

@@ -201,14 +201,17 @@ export default {
updateEvent (e) {
zy.detail(e.key, e.ids).then(res => {
var doc = {
key: e.key,
id: e.id,
key: e.key,
ids: res.id,
last: res.last,
site: res.site,
name: res.name,
type: res.type,
year: res.year,
note: res.note
note: res.note,
index: res.index,
last: res.last,
hasUpdate: res.hasUpdate
}
star.get(e.id).then(resStar => {
doc.hasUpdate = resStar.hasUpdate

View File

@@ -8,7 +8,7 @@ db.version(3).stores({
iptvSearch: '++id, keywords',
setting: 'id, theme, site, shortcut, view, externalPlayer, searchAllSites, excludeRootClasses, excludeR18Films, forwardTimeInSec',
shortcut: 'name, key, desc',
star: '++id, site, ids, name, type, year, index',
star: '++id, key, ids, site, name, type, year, note, index, last, hasUpdate',
sites: '++id, key, name, api, download, isActive, group',
history: '++id, site, ids, name, type, year, index, time',
mini: 'id, site, ids, name, index, time',