feat: 添加生产环境配置并优化在线用户监控功能

- 添加生产环境相关配置文件(.env.prod, .env.production, docker-compose.prod.yaml)到.gitignore
- 更新前后端生产环境配置,包括数据库、Redis等连接信息
- 重构在线用户监控页面,优化查询逻辑和分页处理
- 调整路由配置,将个人中心路由移至根路由下
- 修改接口参数处理,将IP地址查询改为模糊查询
This commit is contained in:
zhangtao
2025-05-28 00:23:14 +08:00
parent 412068f4da
commit d9f42f9d08
8 changed files with 97 additions and 86 deletions
+22 -17
View File
@@ -32,6 +32,25 @@ export const generator = (routers) => {
};
const rootRouter = {
path: "/",
name: "Index",
redirect: "/dashboard",
component: BasicLayout,
children: [
{
path: "/profile",
name: "Profile",
meta: {
title: "个人中心",
keepAlive: true,
},
component: () => import("../views/current/profile.vue"),
},
],
};
const routes = [
{ path: "/login",
name: "Login",
@@ -60,25 +79,11 @@ const routes = [
meta: { title: "404" },
component: () => import("../views/exception/404.vue"),
},
{
...rootRouter,
},
];
const rootRouter = {
path: "/",
name: "Index",
redirect: "/dashboard",
component: BasicLayout,
children: [
{
path: "/profile",
name: "Profile",
meta: {
title: "个人中心",
keepAlive: true,
},
component: () => import("../views/current/profile.vue"),
},
],
};
const router = createRouter({
history: createWebHistory(),