mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-30 15:19:32 +08:00
Optimize: get image list error
This commit is contained in:
parent
32e29d0d1f
commit
29447daf99
@ -33,8 +33,12 @@ const getImageList = async () => {
|
|||||||
if (images.value) imageDataSource.value = images.value;
|
if (images.value) imageDataSource.value = images.value;
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
return Modal.error({
|
||||||
return message.error(err.message);
|
centered: true,
|
||||||
|
closable: true,
|
||||||
|
content: err.message,
|
||||||
|
title: t("错误")
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user