zhengnaiwen_citu 6 달 전
부모
커밋
945da07644
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/salary/solution/salarySolution/salarySolutionRules.vue

+ 1 - 1
src/views/salary/solution/salarySolution/salarySolutionRules.vue

@@ -209,7 +209,7 @@ export default {
     },
     onSelectAllChange (val) {
       if (val) {
-        this.paramsSelection = this.paramsSelection.concat(this.paramsList.map(e => e.name)).flat()
+        this.paramsSelection = [...new Set(this.paramsSelection.concat(this.paramsList.map(e => e.name)))]
       } else {
         this.paramsSelection = this.paramsSelection.filter(e => !this.paramsList.map(e => e.name).includes(e))
       }