fix(settings): add stop modifier to delete button click

Prevent click event from bubbling to row toggle handler

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-21 11:48:37 +08:00
parent 2114880e47
commit 977ef34aad

View File

@@ -72,8 +72,8 @@ function onProviderChange() {
<div class="cell cell-status" :style="{ color: statusConfig.color }">
{{ statusConfig.icon }} {{ statusConfig.label }}
</div>
<div class="cell cell-actions" @click.stop>
<button class="icon-btn danger" @click="emit('delete')" title="删除">
<div class="cell cell-actions">
<button class="icon-btn danger" @click.stop="emit('delete')" title="删除">
<Trash2 :size="12" />
</button>
</div>