刘洋 8 mesiacov pred
rodič
commit
26cca06a71

+ 4 - 0
src/render/views/DataCheck/SliceImage/CutImageDialog.vue

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