first commit

This commit is contained in:
2026-04-09 21:35:06 +08:00
commit 22fe6e069c
38 changed files with 12631 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { createRouter, createWebHashHistory } from 'vue-router';
const routes = [
{
path: '/',
component: () => import('@/layouts/DefaultLayout.vue'),
children: [
{
path: '',
name: 'Home',
component: () => import('@/views/home/HomeView.vue'),
meta: { title: '首页' },
},
{
path: '/chat',
name: 'Chat',
component: () => import('@/views/chat/ChatView.vue'),
meta: { title: 'OpenCode 对话' },
},
],
},
];
const router = createRouter({
// Electron 中使用 hash 模式
history: createWebHashHistory(),
routes,
});
export default router;