This commit is contained in:
glj 2023-05-23 10:59:57 +08:00
commit 49e8684b92
2 changed files with 4 additions and 4 deletions

View File

@ -24,12 +24,12 @@ export const news = (disaster_id, keywords, page, isBaidu, id) => {
},
});
};
export const twitter = (disaster_id, keys,stime,etime) => {
export const twitter = (disaster_id, keywords,stime,etime,id) => {
return request({
url: '/api/' + twitterModule + 'socialmedia/twitter',
url: '/api/' + twitterModule + '/socialmedia/twitter',
method: 'post',
data: {
disaster_id, keys,stime,etime
disaster_id, keywords,stime,etime,id
},
});
};

View File

@ -313,7 +313,7 @@ const start = (text) => {
getData();
})
}else if(text == 'twitter'){
twitter(ret[0].disasterId,keywords,state.twitter.date[0],state.twitter.date[1]).then(res=>{
twitter(ret[0].disasterId,keywords,state.twitter.date[0],state.twitter.date[1],ret[0].id).then(res=>{
ElMessage.success("Data is being acquired!")
getData();
})