mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-11 14:35:43 +08:00
历史导入兼容老版数据m3u8List
This commit is contained in:
@@ -279,6 +279,7 @@ export default {
|
||||
result.filePaths.forEach(file => {
|
||||
const str = fs.readFileSync(file)
|
||||
const json = JSON.parse(str)
|
||||
json.forEach(record => { if (record.detail.m3u8List) record.detail.fullList = [].concat(record.detail.m3u8List) })
|
||||
history.bulkAdd(json).then(res => {
|
||||
this.$message.success('导入成功')
|
||||
this.getAllhistory()
|
||||
|
||||
Reference in New Issue
Block a user