修复潜在报错
parent
f2b023193c
commit
f80d03ed15
|
@ -48,9 +48,9 @@ export default {
|
|||
|
||||
if (item.pc) {
|
||||
list.push({
|
||||
singer: item.pc.ar,
|
||||
name: item.pc.sn,
|
||||
albumName: item.pc.alb,
|
||||
singer: item.pc.ar ?? '',
|
||||
name: item.pc.sn ?? '',
|
||||
albumName: item.pc.alb ?? '',
|
||||
albumId: item.al?.id,
|
||||
source: 'wy',
|
||||
interval: formatPlayTime(item.dt / 1000),
|
||||
|
@ -65,7 +65,7 @@ export default {
|
|||
} else {
|
||||
list.push({
|
||||
singer: this.getSinger(item.ar),
|
||||
name: item.name,
|
||||
name: item.name ?? '',
|
||||
albumName: item.al?.name,
|
||||
albumId: item.al?.id,
|
||||
source: 'wy',
|
||||
|
|
|
@ -175,9 +175,9 @@ export default {
|
|||
|
||||
if (item.pc) {
|
||||
list.push({
|
||||
singer: item.pc.ar,
|
||||
name: item.pc.sn,
|
||||
albumName: item.pc.alb,
|
||||
singer: item.pc.ar ?? '',
|
||||
name: item.pc.sn ?? '',
|
||||
albumName: item.pc.alb ?? '',
|
||||
albumId: item.al?.id,
|
||||
source: 'wy',
|
||||
interval: formatPlayTime(item.dt / 1000),
|
||||
|
@ -192,7 +192,7 @@ export default {
|
|||
} else {
|
||||
list.push({
|
||||
singer: this.getSinger(item.ar),
|
||||
name: item.name,
|
||||
name: item.name ?? '',
|
||||
albumName: item.al?.name,
|
||||
albumId: item.al?.id,
|
||||
source: 'wy',
|
||||
|
|
Loading…
Reference in New Issue