Revert "统一star数据格式的定义"

This reverts commit aa4583898a.
This commit is contained in:
haiyangcui
2020-10-23 23:31:44 +02:00
parent aa4583898a
commit cc2dc19e39
3 changed files with 6 additions and 10 deletions

View File

@@ -184,9 +184,8 @@ export default {
name: this.info.name,
type: this.info.type,
year: this.info.year,
note: this.info.note,
last: this.info.last
last: this.info.last,
note: this.info.note
}
star.add(docs).then(res => {
this.$message.success('收藏成功')

View File

@@ -201,17 +201,14 @@ export default {
updateEvent (e) {
zy.detail(e.key, e.ids).then(res => {
var doc = {
id: e.id,
key: e.key,
id: e.id,
ids: res.id,
site: res.site,
last: res.last,
name: res.name,
type: res.type,
year: res.year,
note: res.note,
index: res.index,
last: res.last,
hasUpdate: res.hasUpdate
note: res.note
}
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, key, ids, site, name, type, year, note, index, last, hasUpdate',
star: '++id, site, ids, name, type, year, index',
sites: '++id, key, name, api, download, isActive, group',
history: '++id, site, ids, name, type, year, index, time',
mini: 'id, site, ids, name, index, time',