fix:全局按钮播放音效完成

This commit is contained in:
2026-05-19 17:24:02 +08:00
parent f44c22c594
commit 74ca0bb3d7
14 changed files with 36 additions and 22 deletions

View File

@@ -31,7 +31,7 @@ function handleTabClick(index) {
v-for="(tab, index) in tabs"
:key="index"
class="tab-item"
@click="handleTabClick(index)"
@click="$clickSound(() => handleTabClick(index))"
:style="{
width: index === 1 ? '36%' : '20%',
}"

View File

@@ -206,7 +206,7 @@ const goCalibration = async () => {
<button hover-class="none" @click="() => (showHint = false)">
取消
</button>
<button hover-class="none" @click="cancelMatching">确认</button>
<button hover-class="none" @click="$clickSound(cancelMatching)">确认</button>
</view>
</view>
<view v-if="hintType === 4" class="tip-content">

View File

@@ -112,7 +112,7 @@ const createRoom = debounce(async () => {
<text>40厘米全环靶</text>
</view>
</view>
<SButton :onClick="createRoom">创建房间</SButton>
<SButton :onClick="() => $clickSound(createRoom)">创建房间</SButton>
</view>
</template>

View File

@@ -123,7 +123,7 @@ onBeforeUnmount(() => {
</text>
</view>
</view>
<button hover-class="none" @click="stopMatch">取消匹配</button>
<button hover-class="none" @click="$clickSound(stopMatch)">取消匹配</button>
</view>
</template>