1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <template> <div class="search-songs"> <album-content :songList="listOfSongs"></album-content> </div> </template> <script> import { mapGetters } from 'vuex' import { mixin } from '../../mixins' import AlbumContent from '../AlbumContent' export default { name: 'search-songs', components: { AlbumContent }, mixins: [mixin], computed: { ...mapGetters([ 'listOfSongs' // 存放的音乐 ]) }, mounted () { this.getSong() } } </script> <style scoped> .search-songs{ min-height: 300px; } </style> |