完善工具库

pull/375/head
jingjingxyk 3 years ago
parent 4195a1d59f
commit 06cede50cd

@ -1,4 +1,4 @@
import * as until from "./until.js"; import * as utils from "./utils.js";
import * as components from "./components.js"; import * as components from "./components.js";
import * as searchEngine from "./search-engine.js"; import * as searchEngine from "./search-engine.js";
@ -38,5 +38,5 @@ let goToSearchPronounce = (word) => {
} }
}; };
let box = { ...until, ...components, ...searchEngine, goToSearchPronounce }; let box = { ...utils, ...components, ...searchEngine, goToSearchPronounce };
export default box; export default box;

@ -1,4 +1,4 @@
import { addClass, removeClass } from "./until.js"; import { addClass, removeClass } from "./utils.js";
let prettyBox = (box) => { let prettyBox = (box) => {
// 参考 https://blog.csdn.net/weixin_41910848/article/details/82218243 // 参考 https://blog.csdn.net/weixin_41910848/article/details/82218243

@ -73,7 +73,6 @@ function createJSONFile(content, filename) {
a.download = filename; a.download = filename;
a.click(); a.click();
setTimeout(function () { setTimeout(function () {
document.body.removeChild(a);
window.URL.revokeObjectURL(url); window.URL.revokeObjectURL(url);
}, 3000); }, 3000);
} }
Loading…
Cancel
Save