Fix: 修复图形块转代码时中文变量和函数名未编码
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user