diff --git a/.env.development b/.env.development index 953bb31..a6bf65c 100644 --- a/.env.development +++ b/.env.development @@ -4,4 +4,4 @@ ENV_WEBSOCKET_BASE=/ws # 开发环境token配置 - 可以手动设置或从另一个项目获取后填入 ENV_DEV_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NTAzMzkwMTcsInVzZXJuYW1lIjoiYWRtaW4ifQ.uGWMIPH9-sdyEwr0bQBMKQSTAjYBZhlIVDRHGtheENE -ENV_DEV_TENANT_ID=1000 \ No newline at end of file +ENV_DEV_TENANT_ID=1000 diff --git a/src/apis/map/constant.ts b/src/apis/map/constant.ts index f092111..e9802cd 100644 --- a/src/apis/map/constant.ts +++ b/src/apis/map/constant.ts @@ -157,4 +157,5 @@ export const EDITOR_CONFIG: Options = { textAlign: 'center', /** 文本垂直基线 - 顶部对齐 */ textBaseline: 'top', + rule: true, }; diff --git a/src/components/pen-groups.vue b/src/components/pen-groups.vue index 16b5f90..902a603 100644 --- a/src/components/pen-groups.vue +++ b/src/components/pen-groups.vue @@ -28,6 +28,11 @@ const routes = computed(() => //#region 区域列表 const areas = computed(() => editor.value.areas.value.filter(({ label }) => label?.includes(keyword.value))); //#endregion + +const select = (id: string) => { + editor.value.active(id); + editor.value.gotoById(id); +};