Skip to content

Commit

Permalink
fix: 修复主页选择设备不生效的问题 see #120
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed Jul 15, 2024
1 parent e2e74f9 commit a75030a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xiaomusic/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ $(function(){
}
}
});

console.log('cur_did', did);
$('#did').change(function() {
did = $(this).val();
localStorage.setItem('cur_did', did);
window.did = did;
console.log('cur_did', did);
})
});

// 拉取版本
Expand Down

0 comments on commit a75030a

Please sign in to comment.