sonar medium 65 left

This commit is contained in:
Cindy Chang
2024-08-01 15:49:03 +08:00
parent 405dd7f992
commit a426f22db0
8 changed files with 35 additions and 45 deletions

View File

@@ -210,7 +210,9 @@ export default {
if(!code || code === 'case_attributes') return;
nameOccurrences[name]++;
// 重複的選項只出現一次
nameOccurrences[name] === 2 ? noSortedRepeatedData.push(item) : false;
if(nameOccurrences[name] === 2){
noSortedRepeatedData.push(item)
}
// 要按照選單的順序排序
this.repeatedData = this.columnType.filter(column => noSortedRepeatedData.includes(column));
}else {