1
0

feat: 优化界面,增加数据导入

This commit is contained in:
2025-11-01 17:38:20 +08:00
parent 77cbf36524
commit a36d195d4d
6 changed files with 133 additions and 143 deletions

View File

@@ -2,7 +2,6 @@ import {createRoot} from 'react-dom/client'
import {createHashRouter, Navigate, type RouteObject, RouterProvider} from 'react-router'
import './index.scss'
import './components/amis/Registry.ts'
import Overview from './pages/Overview.tsx'
import Root from './pages/Root.tsx'
import Test from './pages/Test.tsx'
import Bookshelf from './pages/book/Bookshelf.tsx'
@@ -16,11 +15,7 @@ const routes: RouteObject[] = [
children: [
{
index: true,
element: <Navigate to="/overview" replace/>,
},
{
path: 'overview',
Component: Overview,
element: <Navigate to="/bookshelf" replace/>,
},
{
path: 'bookshelf',

View File

@@ -1,9 +0,0 @@
import React from 'react'
function Overview() {
return (
<div className="overview"></div>
)
}
export default React.memo(Overview)

View File

@@ -25,11 +25,6 @@ const menus = {
name: '概览',
icon: <InfoCircleOutlined/>,
routes: [
{
path: '/overview',
name: '概览',
icon: <InfoCircleOutlined/>,
},
{
path: '/bookshelf',
name: '书架',