fix: comment out unused BatchEditModal import and enhance item name retrieval logic in batch-edit-modal component
This commit is contained in:
parent
8405d98fe0
commit
388f4ea1e6
@ -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>>;
|
||||
|
@ -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 || '未命名';
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user