update: 增加浏览器尺寸提示&修正类型
This commit is contained in:
parent
557d8b635a
commit
d55f3865e7
|
@ -61,4 +61,5 @@ app.use(router.routes())
|
|||
// listen 8000
|
||||
app.listen(Port, () => {
|
||||
console.log('Server is running on port ' + Port)
|
||||
console.log('自行调整BOT浏览器尺寸 753 X 1180')
|
||||
})
|
||||
|
|
|
@ -257,12 +257,11 @@ export class Plugin {
|
|||
* @param cfg
|
||||
* @returns
|
||||
*/
|
||||
async renderImg(plugin, tpl, data, cfg) {
|
||||
async renderImg(plugin, tpl, data, cfg = {}) {
|
||||
return Common.render(plugin, tpl, data, { ...cfg, e: this.e })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @deprecated 已废弃
|
||||
*/
|
||||
|
|
|
@ -21,12 +21,7 @@ export const PuppeteerLunchConfig = new BaseConfig<PuppeteerLaunchOptions>({
|
|||
'--no-zygote',
|
||||
'--single-process'
|
||||
]
|
||||
// 设置浏览器默认尺寸
|
||||
// defaultViewport: {
|
||||
// width: 1280,
|
||||
// height: 853,
|
||||
// isMobile: true
|
||||
// }
|
||||
// BOT浏览器默认尺寸 753 X 1180
|
||||
})
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue