更新 package.json 和 pnpm-lock.yaml,添加 class-variance-authority 依赖;修改 main.tsx 中的 basename 引入方式;新增 theme.css 样式文件

This commit is contained in:
2026-02-04 19:51:05 +08:00
parent 925bf7aab2
commit 92b9c3315b
6 changed files with 114 additions and 2 deletions

View File

@@ -2,10 +2,12 @@ import ReactDOM from 'react-dom/client'
import { RouterProvider, createRouter } from '@tanstack/react-router'
import { routeTree } from './routeTree.gen'
import './index.css'
import { basename } from './modules/basename'
// Set up a Router instance
const router = createRouter({
routeTree,
basepath: basename,
defaultPreload: 'intent',
scrollRestoration: true,
})