feat(phoneimage): 接入渲染管线逐页进度日志

This commit is contained in:
augushong
2026-05-15 22:09:46 +08:00
parent 07dcc964f4
commit a1dbfbc97d
2 changed files with 20 additions and 7 deletions

View File

@@ -500,12 +500,9 @@
$.extend(newConfig, extraConfig);
}
PhoneImageEngine.updateConfig(newConfig);
var loadIdx = layer.load();
PhoneImageEngine.render().then(function (pages) {
layer.close(loadIdx);
layer.msg('排版完成,共 ' + pages.length + ' 页');
}).catch(function (err) {
layer.close(loadIdx);
if (err !== 'rendering') {
layer.msg('渲染失败: ' + err);
}