Skip to content

Commit 16e0669

Browse files
authored
Merge pull request #71 from WeBankFinTech/branch_bertcai
fix: tagspannel-showTagInputArray初始值异常处理
2 parents 993dbad + 517ab3d commit 16e0669

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)