From 48f0c2345622892aba93da172c8ee3cd4f09a4d8 Mon Sep 17 00:00:00 2001 From: xiaoshi <115949669+xiaoshi930@users.noreply.github.com> Date: Fri, 28 Nov 2025 23:20:14 +0800 Subject: [PATCH] Update xiaoshi-device-update-card.js --- xiaoshi-device-update-card.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xiaoshi-device-update-card.js b/xiaoshi-device-update-card.js index 786fef6..e16fcd2 100644 --- a/xiaoshi-device-update-card.js +++ b/xiaoshi-device-update-card.js @@ -588,9 +588,9 @@ export class XiaoshiUpdateCard extends LitElement { } _handleConfirmUpdate(update, event) { - this._handleClick(); event.stopPropagation(); // 阻止事件冒泡 event.preventDefault(); // 阻止默认行为 + this._handleClick(); // 弹出确认对话框 const confirmed = confirm(`确认要更新 ${update.name} 吗?\n当前版本: ${update.current_version}\n最新版本: ${update.latest_version}`); @@ -865,7 +865,7 @@ export class XiaoshiUpdateCard extends LitElement {
${update.name}
当前版本: ${update.current_version} → 最新版本: ${update.latest_version} - ${update.skipped_version ? html` 已跳过版本: ${update.skipped_version}` : ''} + ${update.skipped_version ? html`
已跳过版本: ${update.skipped_version}` : ''}
this._handleConfirmUpdate(update, e)}> @@ -890,7 +890,7 @@ export class XiaoshiUpdateCard extends LitElement {
${update.name}
当前版本: ${update.current_version} → 最新版本: ${update.latest_version} - ${update.skipped_version ? html` 已跳过版本: ${update.skipped_version}` : ''} + ${update.skipped_version ? html`
已跳过版本: ${update.skipped_version}` : ''}
this._handleConfirmUpdate(update, e)}>