Skip to content

Commit

Permalink
fix: quickimport
Browse files Browse the repository at this point in the history
  • Loading branch information
fesiong committed Nov 10, 2024
1 parent aa0095d commit c7cad07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/content/archive/components/quickImport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ const QuickImportModal: React.FC<quickImportProps> = (props) => {
const syncTask = async () => {
getQuickImportArchiveStatus().then((res) => {
if (res.data) {
running = true;
setTask(res.data);
} else {
if (running) {
running = false;
props.onOpenChange(false);
}
setTask(null);
}
Expand Down Expand Up @@ -130,6 +130,7 @@ const QuickImportModal: React.FC<quickImportProps> = (props) => {
id: 'setting.system.upload-success',
}),
);
running = true;
syncTask();
}
}
Expand All @@ -146,6 +147,7 @@ const QuickImportModal: React.FC<quickImportProps> = (props) => {
archiveQuickImport(formData)
.then((res) => {
message.success(res.msg);
running = true;
syncTask();
})
.finally(() => {
Expand Down

0 comments on commit c7cad07

Please sign in to comment.