fix: bugs

This commit is contained in:
qier222 2023-01-28 12:06:57 +08:00
parent 622f95439d
commit 2f452dbe74
No known key found for this signature in database

View File

@ -146,7 +146,7 @@ export default class {
} }
set volume(volume) { set volume(volume) {
this._volume = volume; this._volume = volume;
this._howler?.volume(volume) this._howler?.volume(volume);
} }
get list() { get list() {
return this.shuffle ? this._shuffledList : this._list; return this.shuffle ? this._shuffledList : this._list;
@ -437,7 +437,7 @@ export default class {
'unblock-music', 'unblock-music',
store.state.settings.unmSource, store.state.settings.unmSource,
track, track,
/** @type {import("@unblockneteasemusic/rust-napi").Context} */ ({ /** @type {import("@unblockneteasemusic/rust-napi").Context} */({
enableFlac: store.state.settings.unmEnableFlac || null, enableFlac: store.state.settings.unmEnableFlac || null,
proxyUri: store.state.settings.unmProxyUri || null, proxyUri: store.state.settings.unmProxyUri || null,
searchMode: determineSearchMode(store.state.settings.unmSearchMode), searchMode: determineSearchMode(store.state.settings.unmSearchMode),