Update: 移除一些无用文件同时优化代码

This commit is contained in:
王立帮
2025-03-20 03:28:38 +08:00
parent d46a8c8b98
commit 69af5bb174
8 changed files with 64 additions and 111 deletions

View File

@@ -25,11 +25,11 @@ class WikiGenerator {
#$xml_ = null;
#desPath_ = '';
#tree_ = [];
constructor($xml, desPath) {
constructor(workspace, generator, $xml, desPath) {
this.#$xml_ = $xml;
this.#desPath_ = desPath;
this.workspace = Mixly.Workspace.getMain().getEditorsManager().getActive().getPage('block').getEditor();
this.generator = Mixly.Workspace.getMain().getEditorsManager().getActive().getPage('block').generator;
this.workspace = workspace;
this.generator = generator;
}
buildTree($nodes) {