mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: 捕获zipDownloader错误
This commit is contained in:
1 parent
308605f884
commit
425496f42d
2 files changed
+4
-2
No files matched your search
@@ -86,7 +86,9 @@ export async function downloadProblemSet(pids, name = 'Export') {
|
||||
let { links } = await request.post(
|
||||
`/d/${UiContext.domainId}/p/${pid}/files`,
|
||||
{ operation: 'get_links', files: (pdoc.data || []).map((i) => i.name), type: 'testdata' }
|
||||
);
|
||||
).catch((e) => {
|
||||
Notification.warn(`${e.error.message} ${e.error.params[0]}`);
|
||||
});
|
||||
for (const filename of Object.keys(links)) {
|
||||
targets.push({ filename: `${pid}/testdata/${filename}`, url: links[filename] });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user