feat: 绘制基础类重构

This commit is contained in:
R524809
2026-04-10 15:06:11 +08:00
parent a911da6181
commit e74fd3709c
17 changed files with 1091 additions and 278 deletions
+3 -3
View File
@@ -362,7 +362,7 @@ Page({
const { words } = this.data as any;
if (!words || words.length === 0) {
this.wordDrawService.drawContentEmpty();
await this.wordDrawService.drawContentEmpty();
return;
}
@@ -370,7 +370,7 @@ Page({
const supportedWords = this.getSupportedWords(words);
if (supportedWords.length === 0) {
wx.showToast({ title: '暂不支持这些汉字', icon: 'none' });
this.wordDrawService.drawContentEmpty();
await this.wordDrawService.drawContentEmpty();
return;
}
@@ -391,7 +391,7 @@ Page({
maxRow,
maxCol,
);
this.wordDrawService.drawPracticeContent(characterData);
await this.wordDrawService.drawPracticeContent(characterData);
},
/** 检查汉字是否支持,返回支持的汉字列表 */