* 加载循环播放偏好
()
| 747 | * 加载循环播放偏好 |
| 748 | */ |
| 749 | loadLoopPlaybackPreference() { |
| 750 | const stored = getStorage(this.config.STORAGE_KEYS.LOOP_MODE); |
| 751 | if (stored && this.config.LOOP_MODES.includes(stored)) { |
| 752 | this.state.loopMode = stored; |
| 753 | } else { |
| 754 | // 兼容旧版本 |
| 755 | const oldVal = getStorage('loopPlaybackEnabled'); |
| 756 | this.state.loopMode = oldVal === 'true' ? 'list' : 'off'; |
| 757 | } |
| 758 | this.syncLoopPlayback(); |
| 759 | } |
| 760 | |
| 761 | /** |
| 762 | * 同步循环播放状态 |
no test coverage detected