Commit f580dede by linjinhong

fix:修改问题

parent 8c24a6ce
......@@ -496,7 +496,10 @@ async function checkImageOutsideGrid() {
}
// ===================== 第二步:Sharp 读取图片原始像素 =====================
let imgSource = imgDom.src;
console.log("imgSource", imgSource);
if (imgSource.startsWith("file://")) {
imgSource = new URL(imgSource).pathname;
if (process.platform === "win32") {
......
......@@ -4,7 +4,7 @@ const { ipcRenderer } = require("electron");
import ImgSetting from "./imgSetting.vue";
import bus from "@/bus";
import PrintDialog from "@/views/design/head/printDialog.vue";
import { mmToPx, newMmToPxFn, extractValue, HLCMmToPxFn } from "@/utils";
import { mmToPx, newMmToPxFn, extractValue } from "@/utils";
const { checkImageOutsideGrid } = require("../../../server/utils/setImage");
const { pathMap } = require("@/config/index.js");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment