260304调整

This commit is contained in:
super committed 2026-03-04 22:48:05 +08:00
1 parent b48f1e592a
commit a0c8721fbb
16 files changed
+1382 -291

No files matched your search

+22
View File
@@ -4,6 +4,9 @@ import { createRouter, createWebHistory } from 'vue-router';
import WorkspaceView from '../views/WorkspaceView.vue';
import ChatView from '../views/ChatView.vue';
import AdminView from '../views/AdminView.vue';
import ProfileView from '../views/ProfileView.vue';
import ResetPasswordView from '../views/ResetPasswordView.vue';
import { config } from '../config';
const routes = [
{
@@ -15,6 +18,16 @@ const routes = [
name: 'Workspace',
component: WorkspaceView
},
{
path: '/profile',
name: 'Profile',
component: ProfileView
},
{
path: '/reset-password',
name: 'ResetPassword',
component: ResetPasswordView
},
{
path: '/chat/:agentId',
name: 'Chat',
@@ -34,4 +47,13 @@ const router = createRouter({
routes
});
router.afterEach((to) => {
const baseTitle = config.appTitle || 'hxai';
if (to.meta.title) {
document.title = `${to.meta.title} - ${baseTitle}`;
} else {
document.title = baseTitle;
}
});
export default router;