Update: 调整blockly的media路径

This commit is contained in:
王立帮
2025-03-18 21:55:57 +08:00
parent 344f48e555
commit d46a8c8b98
24 changed files with 80 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ class EditorBlockly extends EditorBase {
this.workspace = null;
this.initBlockly = () => {
const DEFAULT_CATEGORIES = HTMLTemplate.get('xml/default-categories.xml').render();
const media = path.join(Env.srcDirPath, 'common/media/');
const media = path.join(Env.srcDirPath, 'common/media/blockly');
const renderer = ['geras', 'zelos'].includes(USER.blockRenderer) ? USER.blockRenderer : 'geras';
this.editor = Blockly.inject(this.$blockly[0], {
media,