refactor: 统一代码风格并迁移至 ESLint 新配置
style(backend): 格式化模型文件代码 style(frontend): 调整组件代码格式 chore: 删除旧 ESLint 配置并添加新配置 refactor(backend): 重构模型定义语法 style: 统一箭头函数和对象属性简写
This commit is contained in:
@@ -192,7 +192,8 @@ const AppLayout = ({ children }) => {
|
||||
if (path === '/') return 'dashboard';
|
||||
if (path.startsWith('/visualization-3d')) return 'visualization-3d';
|
||||
if (path.startsWith('/rooms') || path.startsWith('/racks')) return 'room-management';
|
||||
if (path.startsWith('/devices') ||
|
||||
if (
|
||||
path.startsWith('/devices') ||
|
||||
path.startsWith('/fields') ||
|
||||
path.startsWith('/cables') ||
|
||||
path.startsWith('/ports') ||
|
||||
@@ -209,7 +210,8 @@ const AppLayout = ({ children }) => {
|
||||
)
|
||||
return 'system-management';
|
||||
if (path.startsWith('/tickets')) return 'ticket-management';
|
||||
if (path.startsWith('/inventory') || path.startsWith('/pending-devices')) return 'inventory-management';
|
||||
if (path.startsWith('/inventory') || path.startsWith('/pending-devices'))
|
||||
return 'inventory-management';
|
||||
return 'dashboard';
|
||||
};
|
||||
|
||||
@@ -652,9 +654,7 @@ const ThemeConfig = () => {
|
||||
</ErrorBoundary>
|
||||
}
|
||||
/>
|
||||
{routeConfig.map(({ path, component: Component }) =>
|
||||
renderRoute(path, Component)
|
||||
)}
|
||||
{routeConfig.map(({ path, component: Component }) => renderRoute(path, Component))}
|
||||
<Route
|
||||
path="/visualization-3d"
|
||||
element={
|
||||
|
||||
Reference in New Issue
Block a user