hookehuyr

fix(打卡详情页): 计数打卡模式下过滤文本类型附件选项

...@@ -642,6 +642,11 @@ const updateAttachmentTypeOptions = (attachmentType) => { ...@@ -642,6 +642,11 @@ const updateAttachmentTypeOptions = (attachmentType) => {
642 ] 642 ]
643 } 643 }
644 644
645 + // 如果是计数打卡(count),过滤掉文本(text)类型
646 + if (taskType.value === 'count') {
647 + attachmentTypeOptions.value = attachmentTypeOptions.value.filter(option => option.key !== 'text')
648 + }
649 +
645 // 设置默认选中类型(非计数打卡模式下) 650 // 设置默认选中类型(非计数打卡模式下)
646 if (taskType.value !== 'count' && attachmentTypeOptions.value.length > 0) { 651 if (taskType.value !== 'count' && attachmentTypeOptions.value.length > 0) {
647 // 如果当前选中的类型不在新的选项中,则重置为第一个 652 // 如果当前选中的类型不在新的选项中,则重置为第一个
......