Files
chuanqi-qycq-web/module/web/src/router/index.js
Kubbo eb05688ccc feat(server): 添加服务器列表接口和用户进入游戏功能
- 在登录模块中添加服务器列表获取接口 /api/server/list
- 实现用户进入游戏功能,记录登录时间和IP地址
- 添加时间工具函数用于格式化时间戳
- 配置Koa代理支持
- 更新白名单路由配置
- 添加MD5加密、Cookie操作和通用工具函数库
2025-12-25 00:46:56 +08:00

24 lines
416 B
JavaScript

import {createRouter, createWebHistory} from 'vue-router'
import Index from "../views/index.vue";
// 示例路由配置
const routes = [
{
path: '/',
name: 'Home',
component: Index,
redirect: '/login'
},
{
path: '/login', name: 'Login',
component: () => import('@/views/login.vue')
}
]
const router = createRouter({
history: createWebHistory(),
routes
})
export default router