feat: 3.5版本规划
This commit is contained in:
@@ -55,6 +55,15 @@ createFocusPage({
|
||||
|
||||
onLoad(options: { id?: string; mode?: string }) {
|
||||
const routeId = options.id || FOCUS_TYPE_CONFIGS[0].id;
|
||||
|
||||
// “识别形状”仍由独立页面承载。兼容已发布的旧路径和本地兜底
|
||||
// /focusPages/focusDraw/focusDraw?id=shape-recognition,避免通用注册表
|
||||
// 找不到该 id 时静默回退为第一个题型。
|
||||
if (routeId === 'shape-recognition') {
|
||||
wx.redirectTo({ url: '/focusPages/shape/shape' });
|
||||
return;
|
||||
}
|
||||
|
||||
const result = findTypeByRouteId(routeId);
|
||||
if (!result) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user