feat(router): 添加布局组件并集成到路由中

新增 Layout 组件作为应用的主布局结构,包含导航栏和窗口拖拽区域
将 Layout 设置为路由的根组件,统一管理页面布局结构
This commit is contained in:
Vixalie
2025-07-22 14:45:50 +08:00
parent 5ea982b9e9
commit bd7c4ed4cd
2 changed files with 69 additions and 1 deletions

View File

@@ -5,5 +5,6 @@ import './index.css';
// Load components.
import { Router } from '@solidjs/router';
import { render } from 'solid-js/web';
import Layout from './Layout';
render(() => <Router />, document.getElementById('root') as HTMLElement);
render(() => <Router root={Layout} />, document.getElementById('root') as HTMLElement);