fix: 对接登录接口

This commit is contained in:
Json_Lee
2025-05-05 00:53:03 +08:00
parent 8c2b88a7b9
commit ecc604ec6d
11 changed files with 1421 additions and 33 deletions
+13 -3
View File
@@ -1,11 +1,21 @@
import { createRouter, createWebHashHistory } from 'vue-router';
import type { RouteRecordRaw } from 'vue-router';
import {
createRouter,
createWebHashHistory,
} from 'vue-router';
import { jwtGuard } from './permissions';
const routes = [
const routes: Readonly<RouteRecordRaw>[] = [
{
path: '/',
component: () => import('@/layout/index.vue'),
children: [
{
path: '',
name: 'chatWithoutId',
component: () => import('@/pages/chat/index.vue'),
},
{
path: ':id',
name: 'chat',
@@ -18,7 +28,7 @@ const routes = [
name: 'login',
component: () => import('@/pages/login/index.vue'),
},
];
] as const;
const router = createRouter({
history: createWebHashHistory(),