在 Moodle Academy 课程中创建使您的插件移动应用程序兼容 使用 CoreMainMenuHomeDelegate 将“问候”选项卡添加到移动应用程序中。
有没有办法使用 CoreMainMenuHomeDelegate 删除 Site-Home 选项卡?如何从 Moodle 移动应用程序中删除“站点主页”选项卡?
我已阅读 Moodle 文档,但我无法找到使用此委托从移动应用程序中删除选项卡的方法。
转到位于moodleapp/src/core/features/sitehome/services/sitehome.ts的sitehome.ts
查找
if (hasContent || hasCourseBlocks) { return true; }
使返回为 false