@ -97,10 +97,14 @@ async function init() {
return;
}
// 判断是否为正常访问的图片
try {
const resp = await fetch(props.src);
if (resp.status !== 200) {
emit('readyError');
} catch {
cropper.value = new Cropper(imgEl, {
...defaultOptions,
crop() {