xzw 3 anni fa
parent
commit
2a57509389
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      src/sdk/cover/index.js

+ 5 - 2
src/sdk/cover/index.js

@@ -679,7 +679,7 @@ export const enter = (dom, isLocal) => {
         startMeasure(type){ 
         // 寻创建的测量对象有上面绘画测量对象的所有方法
             const bus = mitt()
-            let info = getMeasureType(type, unit)
+            let info = getMeasureType(type)
        
 
             let measure = viewer.measuringTool.startInsertion(
@@ -706,7 +706,10 @@ export const enter = (dom, isLocal) => {
         
             let result = {
                 bus,
-                cancel                
+                
+                destroy(){ 
+                    cancel()
+                },                
             }
         
             /* StartMeasure = Measure & {