diff --git a/.env.development b/.env.development index 5f8dd34..6c82fc8 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,2 @@ ENV_APP_TITLE=运输控制系统(开发) -# ENV_HTTP_BASE=/mocks \ No newline at end of file +ENV_HTTP_BASE=/mocks \ No newline at end of file diff --git a/src/apis/map/constant.ts b/src/apis/map/constant.ts index 51940bf..9d8a04a 100644 --- a/src/apis/map/constant.ts +++ b/src/apis/map/constant.ts @@ -74,4 +74,5 @@ export const EDITOR_CONFIG: Options = { textRotate: false, 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); +};