浏览代码

添加测试类别

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();
-
     }
   });
 });