diff --git a/package-lock.json b/package-lock.json
index 1cb9cac..9fca721 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3960,10 +3960,14 @@
}
},
"node_modules/function-bind": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
- "dev": true
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
},
"node_modules/gensync": {
"version": "1.0.0-beta.2",
diff --git a/src/components/RouteList/index.tsx b/src/components/RouteList/index.tsx
index e56a495..2843f59 100644
--- a/src/components/RouteList/index.tsx
+++ b/src/components/RouteList/index.tsx
@@ -11,6 +11,7 @@ import Web from '@/pages/Web';
import Swiper from '@/pages/Swiper';
import Setup from '@/pages/Setup';
import Rss from '@/pages/Rss';
+import File from "@/pages/File";
import Stats from '@/pages/Stats';
import Iterative from '@/pages/Iterative';
import Page from '@/pages/Route';
@@ -42,6 +43,7 @@ export default () => {
{ path: "/route", title: "路由配置", component: },
{ path: "/role", title: "角色管理", component: },
{ path: "/rss", title: "订阅中心", component: },
+ { path: "/file", title: "文件管理", component: },
{ path: "/stats", title: "数据可视化", component: },
{ path: "/iter", title: "项目更新记录", component: },
];
diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsx
index 5a78023..a9dc465 100644
--- a/src/components/Sidebar/index.tsx
+++ b/src/components/Sidebar/index.tsx
@@ -185,8 +185,8 @@ const Sidebar = ({ sidebarOpen, setSidebarOpen }: SidebarProps) => {
name: "订阅中心"
},
{
- to: "/chart",
- path: "chart",
+ to: "/file",
+ path: "file",
icon: ,
name: "文件系统"
},
diff --git a/src/pages/File/index.tsx b/src/pages/File/index.tsx
new file mode 100644
index 0000000..b543783
--- /dev/null
+++ b/src/pages/File/index.tsx
@@ -0,0 +1,15 @@
+import { useEffect } from 'react'
+
+export default () => {
+ useEffect(() => {
+
+ }, [])
+
+ return (
+ <>
+
+
Hello World!
+
+ >
+ )
+}
\ No newline at end of file
diff --git a/src/pages/Setup/index.tsx b/src/pages/Setup/index.tsx
index b9714cf..7bbbedd 100644
--- a/src/pages/Setup/index.tsx
+++ b/src/pages/Setup/index.tsx
@@ -52,11 +52,11 @@ const SetupPage = () => {
-
+
{list.map((item) => (
- setActive(item.key)}
>
diff --git a/src/pages/Stats/index.tsx b/src/pages/Stats/index.tsx
index 943be18..74787ae 100644
--- a/src/pages/Stats/index.tsx
+++ b/src/pages/Stats/index.tsx
@@ -1,8 +1,6 @@
import Title from "@/components/Title"
import VisitorsStatisChat from "./components/VisitorsStatisChat"
import NewOldVisitors from './components/NewOldVisitors'
-import ChartTwo from "./components/VisitorsStatisChat"
-import ChatCard from "@/components/Chat/ChatCard"
import CardDataStats from "@/components/CardDataStats"
import { AiOutlineEye, AiOutlineMeh, AiOutlineStock, AiOutlineFieldTime } from "react-icons/ai";
diff --git a/vite.config.js b/vite.config.js
index b4a7036..f5c97ec 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -28,6 +28,11 @@ export default defineConfig({
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''),
},
+ '/qiniu': {
+ target: 'https://rsf.qiniuapi.com/', // 你的后端服务器地址
+ changeOrigin: true,
+ rewrite: (path) => path.replace(/^\/qiniu/, ''),
+ },
},
},
})