fix: comment out unused BatchEditModal import and enhance item name retrieval logic in batch-edit-modal component

This commit is contained in:
xudan 2025-09-08 18:11:22 +08:00
parent 8405d98fe0
commit 388f4ea1e6
2 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,7 @@ import { computed, inject, type InjectionKey, ref, type ShallowRef } from 'vue';
import type { MapPen } from '../apis/map';
import type { EditorService } from '../services/editor.service';
import BatchEditModal from './modal/batch-edit-modal.vue';
// import BatchEditModal from './modal/batch-edit-modal.vue';
type Props = {
token: InjectionKey<ShallowRef<EditorService>>;

View File

@ -182,6 +182,9 @@ const selectionDescription = computed(() => {
//
const getItemName = (item: MapPen) => {
if(item.tags?.includes('route')){
return item.desc||item.label || item.id || '未命名';
}
return item.label || item.id || '未命名';
};