sbd-npm 1.3.25 → 1.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util.js +3 -2
package/package.json
CHANGED
package/util.js
CHANGED
@@ -193,10 +193,11 @@ const Util = {
|
|
193
193
|
Util.show_tips("正在生成中", 0, "alert-danger");
|
194
194
|
Util.show_loading();
|
195
195
|
// 获取要截取的HTML元素
|
196
|
+
let element;
|
196
197
|
if (document.getElementsByClassName("save_page_div").length > 0) {
|
197
|
-
|
198
|
+
element = document.getElementsByClassName("save_page_div")[0];
|
198
199
|
} else {
|
199
|
-
|
200
|
+
element = document.getElementById('page_content');
|
200
201
|
}
|
201
202
|
// 创建canvas元素
|
202
203
|
let canvas = document.createElement("canvas");
|