We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1896f21 commit 4c19ea3Copy full SHA for 4c19ea3
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@monsterlee/remax-prerender-plugin",
3
- "version": "1.0.1",
+ "version": "1.0.2",
4
"description": "用于预渲染微信小程序的remax plugin",
5
"main": "index.js",
6
"scripts": {
prerender.js
@@ -59,7 +59,7 @@ class Prerender {
59
const page = this.vm.run(`
60
const page = require('${this.getRealPath(path)}');
61
page.setData = () => {};
62
- page.onLoad();
+ page.onLoad({});
63
module.exports = page;
64
`, this.runScriptPath);
65
return JSON.parse(JSON.stringify(page.container.root.toJSON()));
0 commit comments