chore(energy): 恢复能源管理入口,仅隐藏电能 tab
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- 重新启用 EnergyModule 作为侧边栏入口
- EnergyModule 内部隐藏「电能」tab,只保留「氢能」(保留 Electric* 代码)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
kkfluous
2026-04-29 15:25:37 +08:00
parent ebd82893bc
commit e0c609168e
2 changed files with 16 additions and 26 deletions

View File

@@ -1,11 +1,10 @@
import { useMemo } from 'react';
import { Truck, Route, Activity } from 'lucide-react';
import { Truck, Route, Activity, Zap } from 'lucide-react';
import { Shell, type ModuleConfig } from './components/Shell';
import AssetsModule from './modules/assets/AssetsModule';
import MileageModule from './modules/mileage/MileageModule';
import SchedulingModule from './modules/scheduling/SchedulingModule';
// 能源管理暂未发布,发版前临时隐藏入口(保留模块代码)
// import EnergyModule from './modules/energy/EnergyModule';
import EnergyModule from './modules/energy/EnergyModule';
import AuthProvider from './auth/AuthProvider';
import { useAuth } from './auth/useAuth';
import UnauthorizedPage from './auth/UnauthorizedPage';
@@ -14,7 +13,7 @@ import { canAccessScheduling } from './shared/auth/roles';
const BASE_MODULES: ModuleConfig[] = [
{ id: 'assets', label: '资产管理', icon: Truck, component: AssetsModule },
{ id: 'mileage', label: '里程管理', icon: Route, component: MileageModule },
// { id: 'energy', label: '能源管理', icon: Zap, component: EnergyModule },
{ id: 'energy', label: '能源管理', icon: Zap, component: EnergyModule },
];
const SCHEDULING_MODULE: ModuleConfig = {