Optimize: get image list error

This commit is contained in:
Lazy 2023-10-19 20:38:37 +08:00
parent 32e29d0d1f
commit 29447daf99

View File

@ -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("错误")
});
} }
}; };