Skip to content

Commit e1a22a5

Browse files
committed
🐞 fix: 修复解锁音质问题
1 parent e0380ad commit e1a22a5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/player/SongManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class SongManager {
174174
// 优先检查本地缓存
175175
const cachedUrl = await this.checkLocalCache(songId);
176176
if (cachedUrl) {
177-
return { id: songId, url: cachedUrl };
177+
return { id: songId, url: cachedUrl, isUnlocked: true };
178178
}
179179
const artist = Array.isArray(song.artists) ? song.artists[0].name : song.artists;
180180
const keyWord = song.name + "-" + artist;

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ app.directive("visible", visibleDirective);
3434
app.mount("#app");
3535

3636
// 初始化 ipc
37-
initIpc();
37+
if (!location.hash.includes("desktop-lyric")) initIpc();
3838

3939
// 根据设置判断是否要注册协议
4040
if (isElectron) {

0 commit comments

Comments
 (0)