mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-06 07:57:12 +08:00
fix: 修复一些小问题,优化细节体验 (#352)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user