Browse Source

修正问题

bill 2 years ago
parent
commit
a528efb523
3 changed files with 3 additions and 3 deletions
  1. 1 1
      src/graphic/Layer.js
  2. 1 1
      src/hook/useGraphic.ts
  3. 1 1
      src/views/graphic/menus.ts

+ 1 - 1
src/graphic/Layer.js

@@ -1468,7 +1468,7 @@ export default class Layer {
     Settings.baseLineId = null;
     this.uiControl.graphicStateUI.canAngleLocationMode = false;
     this.uiControl.graphicStateUI.canAllLocationMode = false;
-    this.uiControl.graphicStateUI.canNotBaseLine = false;
+    this.uiControl.graphicStateUI.canVerticalMeasure = false;
     this.uiControl.graphicStateUI.existsBaseLine = false;
   }
 

+ 1 - 1
src/hook/useGraphic.ts

@@ -38,7 +38,7 @@ export const graphicState = ref({
   canRecovery: false,
   showBackImage: true,
   canAngleLocationMode: false,
-  canNotBaseLine: false,
+  canVerticalMeasure: false,
   canAllLocationMode: false,
   existsBaseLine: false,
   continuedMode: false

+ 1 - 1
src/views/graphic/menus.ts

@@ -89,7 +89,7 @@ export const measureMenusRaw = [
     text: '垂线定位',
     icon: 'measure_f',
     onClick(data) {
-      if (graphicState.value.canNotBaseLine) {
+      if (graphicState.value.canVerticalMeasure) {
         uiType.change(data.key);
       } else {
         Message.success({ msg: '请添加基准线后再执行此操作', time: 3000 });