From deb90811c47a503560fab7afe759ce9d235b8953 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 6 Mar 2024 22:12:32 +0800 Subject: [PATCH] =?UTF-8?q?revert(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0=E5=92=8C?= =?UTF-8?q?sourcemap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/components/editor/Preview.vue | 1 - core/frontend/vue.config.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/frontend/src/components/canvas/components/editor/Preview.vue b/core/frontend/src/components/canvas/components/editor/Preview.vue index e8202bb8164..8c44268e78c 100644 --- a/core/frontend/src/components/canvas/components/editor/Preview.vue +++ b/core/frontend/src/components/canvas/components/editor/Preview.vue @@ -794,7 +794,6 @@ export default { restore() { const canvasHeight = document.getElementById(this.previewDomId).offsetHeight const canvasWidth = document.getElementById(this.previewDomId).offsetWidth - console.log('===canvasHeight=' + canvasHeight + ';canvasWidth=' + canvasWidth) this.scaleWidth = (canvasWidth) * 100 / this.canvasStyleData.width // 获取宽度比 // 如果是后端截图方式使用 的高度伸缩比例和宽度比例相同 if (this.backScreenShot) { diff --git a/core/frontend/vue.config.js b/core/frontend/vue.config.js index fb17ba42a30..e68e0fbd322 100644 --- a/core/frontend/vue.config.js +++ b/core/frontend/vue.config.js @@ -17,7 +17,7 @@ const name = defaultSettings.title || 'vue Admin Template' // page title const port = process.env.port || process.env.npm_config_port || 9528 // dev port const parallel = process.env.NODE_ENV === 'development' module.exports = { - productionSourceMap: true, + productionSourceMap: false, publicPath: process.env.VUE_CONTEXT_PATH, parallel, // 使用mock-server