feat: 初始化医护端与患者端页面骨架
完成两个 Vite 应用的基础工程化配置、路由、状态管理及第一版业务页面,当前使用演示数据,尚未接入真实后端接口。
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
import ConsentView from '@/views/consent/ConsentView.vue'
|
||||
import EntryView from '@/views/entry/EntryView.vue'
|
||||
import ResultView from '@/views/result/ResultView.vue'
|
||||
import SignerView from '@/views/signer/SignerView.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{ path: '/', redirect: '/entry' },
|
||||
{ path: '/entry', component: EntryView, meta: { title: '签署入口' } },
|
||||
{ path: '/consent', component: ConsentView, meta: { title: '阅读文书' } },
|
||||
{ path: '/signer', component: SignerView, meta: { title: '确认并签署' } },
|
||||
{ path: '/result', component: ResultView, meta: { title: '签署结果' } },
|
||||
{ path: '/:pathMatch(.*)*', redirect: '/entry' },
|
||||
],
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user