fix: 修复一些小问题,优化细节体验 (#352)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-06-04 21:15:19 +08:00
committed by GitHub
parent c528152986
commit 6226fa7c4d
6 changed files with 144 additions and 97 deletions
+4 -15
View File
@@ -76,22 +76,11 @@
async function handleReset() {
resetting = true;
try {
if (onReset) {
await onReset();
} else {
await api.resetVideo(video.id);
window.location.reload();
}
} catch (error) {
console.error('重置失败:', error);
toast.error('重置失败', {
description: (error as ApiError).message
});
} finally {
resetting = false;
resetDialogOpen = false;
if (onReset) {
await onReset();
}
resetting = false;
resetDialogOpen = false;
}
function handleViewDetail() {