feat: 初始化医护端与患者端页面骨架

完成两个 Vite 应用的基础工程化配置、路由、状态管理及第一版业务页面,当前使用演示数据,尚未接入真实后端接口。
This commit is contained in:
yelan
2026-08-27 11:27:16 +08:00
parent 01827bf304
commit 36fa15487c
28 changed files with 2089 additions and 37 deletions
+52
View File
@@ -0,0 +1,52 @@
import { createRouter, createWebHistory } from 'vue-router'
import ClinicalLayout from '@/layouts/ClinicalLayout.vue'
import ConsentTasksView from '@/views/consent-tasks/ConsentTasksView.vue'
import DashboardView from '@/views/dashboard/DashboardView.vue'
import DocumentsView from '@/views/documents/DocumentsView.vue'
import ReportsView from '@/views/reports/ReportsView.vue'
import SettingsView from '@/views/settings/SettingsView.vue'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
component: ClinicalLayout,
redirect: '/dashboard',
children: [
{
path: 'dashboard',
component: DashboardView,
meta: { title: '工作台' },
},
{
path: 'consent-tasks',
component: ConsentTasksView,
meta: { title: '签署任务' },
},
{
path: 'documents',
component: DocumentsView,
meta: { title: '文书库' },
},
{
path: 'reports',
component: ReportsView,
meta: { title: '统计报表' },
},
{
path: 'settings',
component: SettingsView,
meta: { title: '系统设置' },
},
],
},
{
path: '/:pathMatch(.*)*',
redirect: '/dashboard',
},
],
})
export default router