feat: 绘制基础类重构
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
/** 检查汉字是否支持,返回支持的汉字列表 */
|
||||
|
||||
Reference in New Issue
Block a user