Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
完善播放页面url更新的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
IFmiss committed Nov 23, 2018
1 parent ec8db29 commit bf56303
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/musicsiderlist/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default {
background: rgba(0,0,0,0.3);
}
.sider-content{
padding: $auto_padding_t_b / 2 0;
position: absolute;
left: 0;
right: 0;
Expand Down
7 changes: 6 additions & 1 deletion src/utils/music.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,12 @@ const Music = {
*/
async initMusic (id) {
// 动态设置url的qurey id
location.href = location.origin + '/#/main/play?id=' + id
route.replace({
path: '/main/play',
query: {
id
}
})

// 判断是否可以播放音乐,可以则播放,否则提示无法播放且console
this.checkMusic(id).then(async res => {
Expand Down

0 comments on commit bf56303

Please sign in to comment.