更新 package.json 和 pnpm-lock.yaml,添加 class-variance-authority 依赖;修改 main.tsx 中的 basename 引入方式;新增 theme.css 样式文件
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user