@@ -140,6 +140,10 @@ async function confirm() {
console.error(e);
});
if (!file) return;
+ if (file.size / 1024 < 3) {
+ window.$message.error("裁切图过小!");
+ return;
+ }
emit("confirm", file);
close();
}