feat: 支持忽略更新

This commit is contained in:
cc committed 2026-02-01 20:50:01 +08:00
1 parent 0054509ef2
commit 1f0f824b01
9 files changed
+96 -2

No files matched your search

+7
View File
@@ -12,6 +12,7 @@ interface UpdateDialogProps {
updateInfo: UpdateInfo | null
onClose: () => void
onUpdate: () => void
onIgnore?: () => void
isDownloading: boolean
progress: number | {
percent: number
@@ -27,6 +28,7 @@ const UpdateDialog: React.FC<UpdateDialogProps> = ({
updateInfo,
onClose,
onUpdate,
onIgnore,
isDownloading,
progress
}) => {
@@ -118,6 +120,11 @@ const UpdateDialog: React.FC<UpdateDialogProps> = ({
</div>
) : (
<div className="actions">
{onIgnore && (
<button className="btn-ignore" onClick={onIgnore}>
忽略本次更新
</button>
)}
<button className="btn-update" onClick={onUpdate}>
开启新旅程
</button>