fix: #131 修复多设备切换时播放模式显示错误问题

This commit is contained in:
涵曦 2024-08-01 23:21:31 +00:00
parent a5f2fc195e
commit 489f3f1d6f

View File

@ -53,6 +53,7 @@ $(function(){
.prop('selected', value === did); .prop('selected', value === did);
$("#did").append(option); $("#did").append(option);
if (value === did) {
if (cur_device.play_type == PLAY_TYPE_ALL) { if (cur_device.play_type == PLAY_TYPE_ALL) {
$("#play_type_all").css('background-color', '#b1a8f3'); $("#play_type_all").css('background-color', '#b1a8f3');
$("#play_type_all").text('✔️ 全部循环'); $("#play_type_all").text('✔️ 全部循环');
@ -64,6 +65,7 @@ $(function(){
$("#play_type_rnd").text('✔️ 随机播放'); $("#play_type_rnd").text('✔️ 随机播放');
} }
} }
}
}); });
console.log('cur_did', did); console.log('cur_did', did);
@ -72,6 +74,7 @@ $(function(){
localStorage.setItem('cur_did', did); localStorage.setItem('cur_did', did);
window.did = did; window.did = did;
console.log('cur_did', did); console.log('cur_did', did);
location.reload();
}) })
}); });