Explorar o código

fix: 去掉多余代码

jeo young %!s(int64=2) %!d(string=hai) anos
pai
achega
8aef6ea198
Modificáronse 2 ficheiros con 0 adicións e 5 borrados
  1. 0 2
      src/store/modules/chartEditStore/chartEditStore.ts
  2. 0 3
      types/global.d.ts

+ 0 - 2
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('请先创建画布,再进行缩放')
       }

+ 0 - 3
types/global.d.ts

@@ -11,9 +11,6 @@ interface Window {
 
   // 编辑 JSON 的存储对象
   opener: any
-
-  //当画布大小重新计算后
-  onCanvsSizecomputed:Function
 }
 
 declare type Recordable<T = any> = Record<string, T>