Skip to content

Commit

Permalink
fix: update jsxp
Browse files Browse the repository at this point in the history
  • Loading branch information
snowtafir committed Jan 17, 2025
1 parent d4f91e6 commit be51a2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yz-yuki-plugin",
"version": "2.0.6-9",
"version": "2.0.6-10",
"description": "优纪插件,yunzaijs 关于 微博推送、B站推送 等功能的拓展插件",
"author": "snowtafir",
"type": "module",
Expand Down Expand Up @@ -31,7 +31,7 @@
"debug": "^4.3.6",
"jsdom": "^25.0.1",
"json5": "^2.2.3",
"jsxp": "^1.0.8",
"jsxp": "^1.1.2",
"lodash": "^4.17.21",
"md5": "^2.3.0",
"moment": "^2.30.1",
Expand Down Expand Up @@ -63,7 +63,7 @@
"icqq": "^0.6.10",
"jsdom": "^24.1.1",
"json5": "^2.2.3",
"jsxp": "^1.0.8",
"jsxp": "^1.1.2",
"lodash": "^4.17.21",
"lvyjs": "^0.2.14",
"md5": "^2.3.0",
Expand Down
8 changes: 4 additions & 4 deletions src/utils/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class Image extends Picture {
// 继承父类实例
super();
// 父类已经实例化组件渲染对象
//this.Com;
//this.component;
// 父类已经实例化启动 Puppeteer
//this.Pup.start();
//this.puppeteer.start();
// 初始化 YukiPuppeteerRender 实例
this.yukiPuppeteerRender = new YukiPuppeteerRender(this.Pup);
this.yukiPuppeteerRender = new YukiPuppeteerRender(this.puppeteer);
}

/**
Expand All @@ -43,7 +43,7 @@ class Image extends Picture {
const Page = ReactPages[page];
// 调用 yukiPuppeteerRender 进行截图操作
return this.yukiPuppeteerRender.yukiScreenshot(
this.Com.compile({
this.component.compile({
path: page,
name: `${uid}.html`,
component: <Page {...props} />,
Expand Down

0 comments on commit be51a2a

Please sign in to comment.