feat: 添加控笔页
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user