update: 增加浏览器尺寸提示&修正类型

This commit is contained in:
ningmengchongshui 2024-06-15 15:08:16 +08:00
parent 557d8b635a
commit d55f3865e7
3 changed files with 3 additions and 8 deletions

View File

@ -61,4 +61,5 @@ app.use(router.routes())
// listen 8000 // listen 8000
app.listen(Port, () => { app.listen(Port, () => {
console.log('Server is running on port ' + Port) console.log('Server is running on port ' + Port)
console.log('自行调整BOT浏览器尺寸 753 X 1180')
}) })

View File

@ -257,12 +257,11 @@ export class Plugin {
* @param cfg * @param cfg
* @returns * @returns
*/ */
async renderImg(plugin, tpl, data, cfg) { async renderImg(plugin, tpl, data, cfg = {}) {
return Common.render(plugin, tpl, data, { ...cfg, e: this.e }) return Common.render(plugin, tpl, data, { ...cfg, e: this.e })
} }
} }
/** /**
* @deprecated * @deprecated
*/ */

View File

@ -21,12 +21,7 @@ export const PuppeteerLunchConfig = new BaseConfig<PuppeteerLaunchOptions>({
'--no-zygote', '--no-zygote',
'--single-process' '--single-process'
] ]
// 设置浏览器默认尺寸 // BOT浏览器默认尺寸 753 X 1180
// defaultViewport: {
// width: 1280,
// height: 853,
// isMobile: true
// }
}) })
/** /**