|
@@ -158,16 +158,21 @@ const AcChangeEvent = (arr:any) => {
|
158
|
158
|
pageInfo?.directContent?.chooseList?.push(a_item)
|
159
|
159
|
}
|
160
|
160
|
});
|
161
|
|
- let arr_ac = arr.map((v)=>{return v.id}) || [];
|
162
|
|
- pageInfo?.directContent?.chooseList?.forEach((item, index) => {//删除不存在账号
|
163
|
|
- if(!arr_ac.includes(item.id)){
|
164
|
|
- pageInfo?.directContent?.chooseList?.splice(index,1)
|
165
|
|
- }
|
166
|
|
- });
|
|
161
|
+ if(pageInfo?.directContent?.chooseList){//删除不存在账号
|
|
162
|
+ let arr_ac = arr.map((v)=>{return v.id}) || [];
|
|
163
|
+ let brr:any = []
|
|
164
|
+ let cp_chooseList = _.cloneDeep(pageInfo?.directContent?.chooseList)
|
|
165
|
+ cp_chooseList.forEach((item) => {
|
|
166
|
+ if(arr_ac.includes(item.id)){
|
|
167
|
+ brr.push(_.cloneDeep(item))
|
|
168
|
+ }
|
|
169
|
+ });
|
|
170
|
+ pageInfo.directContent.chooseList = brr;
|
|
171
|
+ }
|
|
172
|
+
|
167
|
173
|
}else{
|
168
|
174
|
clearDirectContent()
|
169
|
175
|
}
|
170
|
|
- console.log(arr, pageInfo?.directContent?.chooseList)
|
171
|
176
|
}
|
172
|
177
|
|
173
|
178
|
//抛出obj
|