fix: 初始化activeKeys为'defaultActive'以确保组件的默认状态正确

This commit is contained in:
xudan 2025-08-07 16:19:21 +08:00
parent 0cd2a951d5
commit 153cbfa467

View File

@ -12,7 +12,7 @@ const props = defineProps<Props>();
const editor = inject(props.token)!; const editor = inject(props.token)!;
const keyword = ref<string>(''); const keyword = ref<string>('');
const activeKeys = ref<string[]>([]); const activeKeys = ref<string[]>(['defaultActive']);
//#region //#region
const points = computed<MapPen[]>(() => const points = computed<MapPen[]>(() =>