update renderers/puppeteer/index.js.
Signed-off-by: hbj白夜 <hei_bai_jun@163.com>
This commit is contained in:
parent
ee1008b758
commit
cc9a7fecad
|
@ -10,5 +10,13 @@ import Puppeteer from './lib/puppeteer.js'
|
||||||
*/
|
*/
|
||||||
export default function (config) {
|
export default function (config) {
|
||||||
// TODO Puppeteer待简化重构
|
// TODO Puppeteer待简化重构
|
||||||
return new Puppeteer(config)
|
const PuppeteerRender = new Puppeteer(config)
|
||||||
|
|
||||||
|
return {
|
||||||
|
id: 'puppeteer',
|
||||||
|
type: 'image',
|
||||||
|
async render (name, data) {
|
||||||
|
return await PuppeteerRender.screenshot(name, data)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue