Fix: 修复图形块转代码时中文变量和函数名未编码

This commit is contained in:
王立帮
2024-10-12 20:51:19 +08:00
parent 05be16af79
commit 0e42ca74d4
2 changed files with 11 additions and 2 deletions

View File

@@ -458,8 +458,8 @@ class EditorMix extends EditorBase {
getCode() {
const blockPage = this.getPage('block');
const codePage = this.getPage('code');
if (this.drag.shown === Drag.Extend.POSITIVE) {
return blockPage.getCode();
if (this.drag.shown !== Drag.Extend.NEGATIVE) {
return blockPage.getRawCode();
} else {
return codePage.getCode();
}