diff --git a/_server/config.json b/_server/config.json index 9c9888dc..fe6a45a9 100644 --- a/_server/config.json +++ b/_server/config.json @@ -1 +1 @@ -{"lastUsed":[],"foldPerCol":50,"folded":false,"editorLastFloorId":"sample0","disableBlocklyReplace":false,"shortcut":{"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0}} \ No newline at end of file +{"lastUsed":[],"foldPerCol":50,"folded":false,"editorLastFloorId":null,"disableBlocklyReplace":false,"shortcut":{"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0}} \ No newline at end of file diff --git a/_server/editor_materialpanel.js b/_server/editor_materialpanel.js index ea7dcced..ca3713fb 100644 --- a/_server/editor_materialpanel.js +++ b/_server/editor_materialpanel.js @@ -39,7 +39,7 @@ editor_materialpanel_wrapper = function (editor) { var perCol = parseInt(prompt("请输入折叠素材模式下每列的个数:", "50")) || 0; if (perCol > 0) { editor.config.set('foldPerCol', perCol, false); - editor.config.set('folded', false, function() { + editor.config.set('folded', true, function() { window.location.reload(); }); }