From 8aef6ea1981435957f15cb2b7923787692f07428 Mon Sep 17 00:00:00 2001 From: jeo young <1414294708@qq.com> Date: Sat, 17 Dec 2022 17:56:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/chartEditStore/chartEditStore.ts | 2 -- types/global.d.ts | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/store/modules/chartEditStore/chartEditStore.ts b/src/store/modules/chartEditStore/chartEditStore.ts index 75c3f8db..16a4eda4 100644 --- a/src/store/modules/chartEditStore/chartEditStore.ts +++ b/src/store/modules/chartEditStore/chartEditStore.ts @@ -928,8 +928,6 @@ export const useChartEditStore = defineStore({ const scaleHeight = parseFloat((width / baseProportion / editCanvasHeight).toFixed(5)) this.setScale(scaleHeight > 1 ? 1 : scaleHeight) } - - window.onCanvsSizecomputed?.() } else { window['$message'].warning('请先创建画布,再进行缩放') } diff --git a/types/global.d.ts b/types/global.d.ts index 03b0a48e..aabfe766 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -11,9 +11,6 @@ interface Window { // 编辑 JSON 的存储对象 opener: any - - //当画布大小重新计算后 - onCanvsSizecomputed:Function } declare type Recordable = Record