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;
|
||||
} catch (err: any) {
|
||||
console.error(err);
|
||||
|
||||
return message.error(err.message);
|
||||
return Modal.error({
|
||||
centered: true,
|
||||
closable: true,
|
||||
content: err.message,
|
||||
title: t("错误")
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user