|
@@ -24126,16 +24126,19 @@ ${msg}
|
|
|
} else {
|
|
|
_type = 12;
|
|
|
}
|
|
|
- let fileid = await this.createFileid(url)
|
|
|
- this.knowInfoData2.push({
|
|
|
- name: el.title,
|
|
|
- url: url,
|
|
|
- uid: '',
|
|
|
- type: _type,
|
|
|
- fileid: fileid == 1 ? '' : fileid,
|
|
|
- });
|
|
|
- if(fileid != 1){
|
|
|
- this.knowFileids2.push(fileid)
|
|
|
+ let isExist = this.knowInfoData2.some(item => item.name === el.title);
|
|
|
+ if (!isExist) {
|
|
|
+ let fileid = await this.createFileid(url)
|
|
|
+ this.knowInfoData2.push({
|
|
|
+ name: el.title,
|
|
|
+ url: url,
|
|
|
+ uid: '',
|
|
|
+ type: _type,
|
|
|
+ fileid: fileid == 1 ? '' : fileid,
|
|
|
+ });
|
|
|
+ if(fileid != 1){
|
|
|
+ this.knowFileids2.push(fileid)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
// let data = {
|