Skip to content

Commit 517ab3d

Browse files
author
v_boweicai(蔡博伟)
committed
fix: tagspannel-showTagInputArray初始值异常处理
1 parent de21b91 commit 517ab3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/traction-widget/components/TagsPanel/TagsPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const props = defineProps({
9797
// eslint-disable-next-line no-undef
9898
const emit = defineEmits(['update:tags']);
9999
const { datasource } = useFormModel(props, emit, ['tags']);
100-
const showTagInputArray = ref(datasource.tags.map(() => false));
100+
const showTagInputArray = ref(datasource?.tags?.map(() => false) || []);
101101
const editTagInputRefs = ref<InstanceType<typeof FInput>[]>([] as any[]);
102102
const editTempTagInput = ref<string>('');
103103

0 commit comments

Comments
 (0)