bill пре 2 година
родитељ
комит
5da321a5cd
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/views/drawGraphic/index.vue

+ 3 - 3
src/views/drawGraphic/index.vue

@@ -7,8 +7,7 @@
         @click="activeMenu = menu.key"
         :class="{ active: menu.key === activeMenu }"
       >
-
-            {{ menu.text }}
+        {{ menu.text }}
       </div>
     </div>
     <div class="canvas-layout">
@@ -30,6 +29,8 @@ const setCanvasSize = () => {
 const menus = ref([
   { key: "road", text: "道路" },
   { key: "tag", text: "标注" },
+  { key: "measure", text: "测量线" },
+  { key: "backgroundImage", text: "背景图片" },
 ]);
 const activeMenu = ref<string>(null);
 
@@ -43,7 +44,6 @@ onMounted(() => {
     if (drawRef.value) {
       drawRef.value.control.currentUI = activeMenu.value as any;
       drawRef.value.control.updateEventNameForSelectUI();
-
     }
   });
 });