Skip to content

完整壳概述 ​

启用 ​

  1. 安装 @selrux/shell@0.0.6(Nexus)
  2. selrux.config.ts 设置 shell: true
  3. 显式声明 React、TanStack Router、Vite 等 peers
ts
import { defineConfig } from '@vlian/app';

export default defineConfig({ shell: true });

边界 ​

  • 预编译 ESM + CSS;/vite 只服务用户页面 UnoCSS
  • 异常页为 CSS 视觉页,无 Lottie/WASM
  • 图标白名单;可用 registerShellIcons 扩展
  • 不附带生产假登录

继续:菜单与图标 · 插槽 · 主题与 Tabs · 认证

精简版默认可用;完整壳需显式启用并配置私服。