更新12个教务系统并优化项目大小
主要更新: - 更新所有12个产业的教务系统数据和功能 - 删除所有 node_modules 文件夹(节省3.7GB) - 删除所有 .yoyo 缓存文件夹(节省1.2GB) - 删除所有 dist 构建文件(节省55MB) 项目优化: - 项目大小从 8.1GB 减少到 3.2GB(节省60%空间) - 保留完整的源代码和配置文件 - .gitignore 已配置,防止再次提交大文件 启动脚本: - start-industry.sh/bat/ps1 脚本会自动检测并安装依赖 - 首次启动时自动运行 npm install - 支持单个或批量启动产业系统 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -186,20 +186,19 @@ const PublicCourseList = forwardRef(({ className = "", onCourseClick }, ref) =>
|
||||
// - 如果是字符串,表示点击了某个面板,需要切换它的展开/收起状态
|
||||
// - 如果是数组,表示新的展开状态
|
||||
if (typeof keys === 'string') {
|
||||
// 切换单个面板的展开/收起状态
|
||||
// 切换单个面板的展开/收起状态(手风琴效果:展开一个时自动收起其他)
|
||||
setActiveKeys(prevKeys => {
|
||||
const keyStr = String(keys);
|
||||
const newKeys = [...prevKeys];
|
||||
const index = newKeys.indexOf(keyStr);
|
||||
const index = prevKeys.indexOf(keyStr);
|
||||
if (index > -1) {
|
||||
// 如果已展开,则收起
|
||||
newKeys.splice(index, 1);
|
||||
console.log('Closing panel:', keyStr);
|
||||
return [];
|
||||
} else {
|
||||
// 如果已收起,则展开
|
||||
newKeys.push(keyStr);
|
||||
// 如果已收起,则展开(并自动收起其他面板)
|
||||
console.log('Opening panel:', keyStr, 'and closing others');
|
||||
return [keyStr];
|
||||
}
|
||||
console.log('Toggling key:', keyStr, 'New activeKeys:', newKeys);
|
||||
return newKeys;
|
||||
});
|
||||
} else if (Array.isArray(keys)) {
|
||||
// 直接设置新的展开状态
|
||||
|
||||
Reference in New Issue
Block a user