feat: 添加控笔页

This commit is contained in:
R524809
2026-05-28 16:46:30 +08:00
parent 824e83c887
commit 2f0c4ab591
21 changed files with 1406 additions and 169 deletions
@@ -51,7 +51,6 @@ function inferGradeFromAge(ageMin: number, ageMax: number): number {
return ageGradeMap[centerAge] ?? 0;
}
type ConfigSource = {
label: string;
data: readonly LocalDef[];
@@ -398,9 +397,10 @@ Page({
const startedAt = Date.now();
try {
const queryRes = await callCloudFunction<
Array<{ _id: string }>
>('worksheetsQuery', {});
const queryRes = await callCloudFunction<Array<{ _id: string }>>(
'worksheetsQuery',
{},
);
if (!queryRes.success || !queryRes.data) {
throw new Error(queryRes.message || '查询 worksheet 列表失败');
@@ -443,8 +443,7 @@ Page({
this.setData({ statusText: text });
wx.showToast({ title: '已重置', icon: 'success' });
} catch (error) {
const msg =
error instanceof Error ? error.message : '重置失败';
const msg = error instanceof Error ? error.message : '重置失败';
this.setData({ statusText: msg });
wx.showToast({ title: msg, icon: 'none' });
} finally {