fix dow
This commit is contained in:
parent
40cda264e2
commit
3cf3965a6e
@ -7,6 +7,7 @@ async function getQqListData(url) {
|
||||
headless: false,
|
||||
timeout: 0 // 默认超时为30秒,设置为0则表示不设置超时
|
||||
});
|
||||
try{
|
||||
const page = await browser.newPage();
|
||||
page.setViewport({
|
||||
width: 1376,
|
||||
@ -77,6 +78,11 @@ async function getQqListData(url) {
|
||||
}
|
||||
browser.close()
|
||||
return list
|
||||
}catch{
|
||||
browser.close()
|
||||
return []
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
Loading…
Reference in New Issue
Block a user