Przeglądaj źródła

数据处理优化

yuanrf 2 lat temu
rodzic
commit
cceb750234
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      src/components/child/AuthorityUser.vue

+ 4 - 1
src/components/child/AuthorityUser.vue

@@ -235,7 +235,7 @@ export default {
             this.authorityLists.forEach(item => {
                 savejob.push({
                     SmId: item.id,
-                    FIds: item.selList,
+                    FIds: this.unique(item.selList),
                 });
             })
             console.log(savejob);
@@ -349,6 +349,9 @@ export default {
                 }
             })
 
+        },
+        unique(arr) {
+            return Array.from(new Set(arr));
         }
     },
     mounted() {