diff --git a/README.md b/README.md index bf492558..2e61aa3b 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Using Vue-APlayer in your project? [Let me know!](https://github.com/SevenOutman {{ index + 1}} {{ aMusic.title || 'Untitled' }} - {{ aMusic.author || 'Unknown' }} + {{ aMusic.artist || aMusic.author || 'Unknown' }} diff --git a/src/demo/App.vue b/src/demo/App.vue index 0e51e113..7040f08a 100644 --- a/src/demo/App.vue +++ b/src/demo/App.vue @@ -28,7 +28,7 @@
{{ currentMusic.title || 'Untitled' }} - {{ currentMusic.author || 'Unknown' }} + {{ currentMusic.artist || currentMusic.author || 'Unknown' }}
@@ -91,6 +91,9 @@ if (song.url) { deprecatedProp('music.url', '1.4.0', 'music.src') } + if (song.author) { + deprecatedProp('music.author', '1.4.1', 'music.artist') + } return song.src || song.url }, },