|
@@ -21,7 +21,7 @@ let source: MediaElementAudioSourceNode;
|
|
|
let leftGain: GainNode, rightGain: GainNode;
|
|
|
|
|
|
function handleLoaded() {
|
|
|
- if (source)
|
|
|
+ if (source && !route.query.enableLr)
|
|
|
return;
|
|
|
|
|
|
const audioContext = new AudioContext();
|
|
@@ -85,7 +85,7 @@ function switchAudio(left: boolean) {
|
|
|
img: 'max-width: 100%'
|
|
|
}" />
|
|
|
</ScrollRect>
|
|
|
- <div class="d-flex flex-row align-center gap-s">
|
|
|
+ <div v-if="route.query.enableLr" class="d-flex flex-row align-center gap-s">
|
|
|
<ActiveableButton text="原唱" :active="leftAudio" @click="switchAudio(true)" />
|
|
|
<ActiveableButton text="伴奏" :active="!leftAudio" @click="switchAudio(false)" />
|
|
|
</div>
|